aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2004-09-23 18:22:25 +0000
committerFariborz Jahanian <fjahanian@gcc.gnu.org>2004-09-23 18:22:25 +0000
commit037cc9c5dce2bd0569c90e67ab9760d36e1c620f (patch)
treedf77b7d51d9b71c598887245fda31d867e50e5b6 /gcc/cp/parser.c
parent093942ac675fab472ce829446c86b8233f25ee1d (diff)
downloadgcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.zip
gcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.tar.gz
gcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.tar.bz2
PR c++/9844, PR c++/13989
PR c++/9844, PR c++/13989 Reviewed by Mark Mitchel. From-SVN: r87971
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 05d5b6d..db779a2 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -7441,6 +7441,7 @@ cp_parser_conversion_type_id (cp_parser* parser)
tree attributes;
cp_decl_specifier_seq type_specifiers;
cp_declarator *declarator;
+ tree type_specified;
/* Parse the attributes. */
attributes = cp_parser_attributes_opt (parser);
@@ -7452,8 +7453,11 @@ cp_parser_conversion_type_id (cp_parser* parser)
/* Parse the conversion-declarator. */
declarator = cp_parser_conversion_declarator_opt (parser);
- return grokdeclarator (declarator, &type_specifiers, TYPENAME,
- /*initialized=*/0, &attributes);
+ type_specified = grokdeclarator (declarator, &type_specifiers, TYPENAME,
+ /*initialized=*/0, &attributes);
+ if (attributes)
+ cplus_decl_attributes (&type_specified, attributes, /*flags=*/0);
+ return type_specified;
}
/* Parse an (optional) conversion-declarator.