mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
fix 14d0aa450f
This commit is contained in:
parent
03687729ec
commit
8d5e0cf083
2
tccgen.c
2
tccgen.c
@ -2911,7 +2911,7 @@ static void struct_decl(CType *type, int u, int tdef)
|
|||||||
if (v == 0 && (type1.t & VT_BTYPE) != VT_STRUCT)
|
if (v == 0 && (type1.t & VT_BTYPE) != VT_STRUCT)
|
||||||
expect("identifier");
|
expect("identifier");
|
||||||
if (type_size(&type1, &align) < 0) {
|
if (type_size(&type1, &align) < 0) {
|
||||||
if ((a == TOK_STRUCT) && (type1.t & VT_ARRAY) && c)
|
if ((a == TOK_STRUCT) && (type1.t & VT_ARRAY))
|
||||||
flexible = 1;
|
flexible = 1;
|
||||||
else
|
else
|
||||||
tcc_error("field '%s' has incomplete type",
|
tcc_error("field '%s' has incomplete type",
|
||||||
|
Loading…
Reference in New Issue
Block a user