diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 60938a7..0402d77 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -10362,12 +10362,14 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) a TREE_LIST. */ tree attrs = TREE_PURPOSE (declarator); tree inner_decl; + int attr_flags; + declarator = TREE_VALUE (declarator); inner_decl = declarator; while (inner_decl != NULL_TREE && TREE_CODE (inner_decl) == TREE_LIST) inner_decl = TREE_VALUE (inner_decl); - int attr_flags = 0; + attr_flags = 0; if (inner_decl == NULL_TREE || TREE_CODE (inner_decl) == IDENTIFIER_NODE) attr_flags |= (int) ATTR_FLAG_DECL_NEXT; |