From 72f466c24c5347516ca5a81221e29129dafe1c63 Mon Sep 17 00:00:00 2001 From: jiang <30155751@qq.com> Date: Tue, 13 May 2014 22:00:42 +0800 Subject: [PATCH] Modify tcc_error ("invalid type",); --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 4cc95430..0937883a 100644 --- a/tccgen.c +++ b/tccgen.c @@ -2839,7 +2839,7 @@ static void struct_decl(CType *type, int u, int tdef) s = struct_find(v); if (s) { if (s->type.t != a) - tcc_error("invalid type"); + tcc_error("invalid type: '%s'", get_tok_str(v, NULL)); goto do_decl; } else if (tok >= TOK_IDENT && !tdef) tcc_error("unknown struct/union/enum");