From 981eb84d8ab91aafe73d5eeb218ffe31d28b1014 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 31 Jan 2013 12:32:31 +0100 Subject: [PATCH] Check whether structure fields have a type --- tccgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 51ac0b15..d75b359f 100644 --- a/tccgen.c +++ b/tccgen.c @@ -2764,7 +2764,8 @@ static void struct_decl(CType *type, int u) bit_pos = 0; offset = 0; while (tok != '}') { - parse_btype(&btype, &ad); + if (parse_btype(&btype, &ad)) + expect("type"); while (1) { bit_size = -1; v = 0; -- 2.11.4.GIT