Disabled struct/union fields of 'void' type.
This commit is contained in:
@@ -942,8 +942,8 @@ static SymEntry* ParseUnionDecl (const char* Name, unsigned* DSFlags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for incomplete type */
|
/* Check for incomplete types including 'void' */
|
||||||
if (IsIncompleteESUType (Decl.Type)) {
|
if (IsClassIncomplete (Decl.Type)) {
|
||||||
Error ("Field '%s' has incomplete type '%s'",
|
Error ("Field '%s' has incomplete type '%s'",
|
||||||
Decl.Ident,
|
Decl.Ident,
|
||||||
GetFullTypeName (Decl.Type));
|
GetFullTypeName (Decl.Type));
|
||||||
@@ -1142,8 +1142,8 @@ static SymEntry* ParseStructDecl (const char* Name, unsigned* DSFlags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for incomplete type */
|
/* Check for incomplete types including 'void' */
|
||||||
if (IsIncompleteESUType (Decl.Type)) {
|
if (IsClassIncomplete (Decl.Type)) {
|
||||||
Error ("Field '%s' has incomplete type '%s'",
|
Error ("Field '%s' has incomplete type '%s'",
|
||||||
Decl.Ident,
|
Decl.Ident,
|
||||||
GetFullTypeName (Decl.Type));
|
GetFullTypeName (Decl.Type));
|
||||||
|
|||||||
Reference in New Issue
Block a user