1
0
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:
acqn 2020-08-22 05:57:12 +08:00 committed by Oliver Schmidt
parent 43cb092a68
commit 8d225c32b1

View File

@ -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 ();