summaryrefslogtreecommitdiffstats
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 07:17:49 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 07:17:49 +0000
commit7469e185ecf969240be014d29d9a7b8ffd544f17 (patch)
treea1ff2811bef87d89a564eaa0c82fe25fd73d459c /gcc/cp/decl.c
parent8386b4cf000bf9bc6243e3e9f996baa04032c501 (diff)
downloadppe42-gcc-7469e185ecf969240be014d29d9a7b8ffd544f17.tar.gz
ppe42-gcc-7469e185ecf969240be014d29d9a7b8ffd544f17.zip
* decl.c (grokdeclarator): Use C syntax for attr_flags declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 60938a702ba..0402d77edd4 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;
OpenPOWER on IntegriCloud