mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 04:25:21 +00:00
Fixed checks on assignment to incomplete types.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user