mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Fixed checks on assignment to incomplete types.
This commit is contained in:
parent
43cb092a68
commit
8d225c32b1
@ -156,6 +156,11 @@ void Assignment (ExprDesc* Expr)
|
||||
Error ("Assignment to const");
|
||||
}
|
||||
|
||||
/* Check for assignment to incomplete type */
|
||||
if (IsIncompleteESUType (ltype)) {
|
||||
Error ("Assignment to incomplete type '%s'", GetFullTypeName (ltype));
|
||||
}
|
||||
|
||||
/* Skip the '=' token */
|
||||
NextToken ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user