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:
parent
f1161daee9
commit
8b580e1191
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user