From: Christoph Mallon Date: Mon, 17 Dec 2007 18:01:54 +0000 (+0000) Subject: When parsing a union declaration, build a union type, not a struct type. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e526d79af7409ab71f8fe65a878a5d5d98e6a990;p=cparser When parsing a union declaration, build a union type, not a struct type. [r18786] --- diff --git a/parser.c b/parser.c index d871a80..c4b9187 100644 --- a/parser.c +++ b/parser.c @@ -1610,7 +1610,7 @@ static void parse_declaration_specifiers(declaration_specifiers_t *specifiers) break; } case T_union: { - type = allocate_type_zero(TYPE_COMPOUND_STRUCT); + type = allocate_type_zero(TYPE_COMPOUND_UNION); type->compound.declaration = parse_compound_type_specifier(false); break;