Fixed checks on assignment to incomplete types.
This commit is contained in:
parent
43cb092a68
commit
8d225c32b1
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue