compound type specifiers can have __attribute__, too. Parse it (and ignore it for...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 18 Nov 2007 12:24:04 +0000 (12:24 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 18 Nov 2007 12:24:04 +0000 (12:24 +0000)
[r18484]

parser.c

index 6bf4752..f030107 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -960,6 +960,11 @@ static declaration_t *parse_compound_type_specifier(bool is_struct)
        symbol_t      *symbol      = NULL;
        declaration_t *declaration = NULL;
 
+       if (token.type == T___attribute__) {
+               /* TODO */
+               parse_attributes();
+       }
+
        if(token.type == T_IDENTIFIER) {
                symbol = token.v.symbol;
                next_token();