Merge branch 'master' into StaticConst

This commit is contained in:
acqn
2020-08-27 06:27:23 +08:00
committed by GitHub
45 changed files with 872 additions and 200 deletions

View File

@@ -157,6 +157,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 ();