aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-10-21 16:03:47 +0000
committerMark Mitchell <mark@codesourcery.com>2005-10-21 16:03:47 +0000
commite4af13f122b99dbee2d747915c00066b50a08035 (patch)
tree3f538af86373ecd129467ec75c2098c60a310cee /gcc/cp
parent7d30d30cf584867336275460125b665230034611 (diff)
PR c++/24260
* parser.c (cp_parser_init_declarator): Pass attributes to grokfield. PR c++/24260 * g++.dg/ext/tmplattr1.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@105746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/parser.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index bba2e8e94f0..dee7410600d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-21 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/24260
+ * parser.c (cp_parser_init_declarator): Pass attributes to
+ grokfield.
+
2005-10-20 Mark Mitchell <mark@codesourcery.com>
PR c++/22618
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 300c266da9e..25f25ce69ec 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -10938,7 +10938,7 @@ cp_parser_init_declarator (cp_parser* parser,
}
decl = grokfield (declarator, decl_specifiers,
initializer, /*asmspec=*/NULL_TREE,
- /*attributes=*/NULL_TREE);
+ prefix_attributes);
if (decl && TREE_CODE (decl) == FUNCTION_DECL)
cp_parser_save_default_args (parser, decl);
}