aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiang <30155751@qq.com>2014-05-13 22:00:42 +0800
committerjiang <30155751@qq.com>2014-05-13 22:00:42 +0800
commit72f466c24c5347516ca5a81221e29129dafe1c63 (patch)
treed7de9a64e21d393eac747d35aa37743c75b20354
parent8d5e0cf083f2cf931b8ab616ec67c9003ae65d11 (diff)
downloadtinycc-72f466c24c5347516ca5a81221e29129dafe1c63.tar.gz
tinycc-72f466c24c5347516ca5a81221e29129dafe1c63.tar.bz2
Modify tcc_error ("invalid type",);
-rw-r--r--tccgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccgen.c b/tccgen.c
index 4cc9543..0937883 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");