1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-05 15:30:44 +00:00

Disabled struct/union fields of 'void' type.

This commit is contained in:
acqn 2020-08-30 02:31:09 +08:00 committed by Oliver Schmidt
parent f1161daee9
commit 8b580e1191

View File

@ -942,8 +942,8 @@ static SymEntry* ParseUnionDecl (const char* Name, unsigned* DSFlags)
}
}
/* Check for incomplete type */
if (IsIncompleteESUType (Decl.Type)) {
/* Check for incomplete types including 'void' */
if (IsClassIncomplete (Decl.Type)) {
Error ("Field '%s' has incomplete type '%s'",
Decl.Ident,
GetFullTypeName (Decl.Type));
@ -1142,8 +1142,8 @@ static SymEntry* ParseStructDecl (const char* Name, unsigned* DSFlags)
}
}
/* Check for incomplete type */
if (IsIncompleteESUType (Decl.Type)) {
/* Check for incomplete types including 'void' */
if (IsClassIncomplete (Decl.Type)) {
Error ("Field '%s' has incomplete type '%s'",
Decl.Ident,
GetFullTypeName (Decl.Type));