Modify tcc_error ("invalid type",);
This commit is contained in:
parent
8d5e0cf083
commit
72f466c24c
1 changed files with 1 additions and 1 deletions
2
tccgen.c
2
tccgen.c
|
@ -2839,7 +2839,7 @@ static void struct_decl(CType *type, int u, int tdef)
|
||||||
s = struct_find(v);
|
s = struct_find(v);
|
||||||
if (s) {
|
if (s) {
|
||||||
if (s->type.t != a)
|
if (s->type.t != a)
|
||||||
tcc_error("invalid type");
|
tcc_error("invalid type: '%s'", get_tok_str(v, NULL));
|
||||||
goto do_decl;
|
goto do_decl;
|
||||||
} else if (tok >= TOK_IDENT && !tdef)
|
} else if (tok >= TOK_IDENT && !tdef)
|
||||||
tcc_error("unknown struct/union/enum");
|
tcc_error("unknown struct/union/enum");
|
||||||
|
|
Loading…
Reference in a new issue