diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-13 21:11:52 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-13 21:11:52 +0000 |
commit | 6493c502114a908d4b550cb5df658f6dddd7e7ef (patch) | |
tree | 1e862cf0788265164b6363afd1db1902f296dfd0 /gcc/cp/decl.h | |
parent | 222745f29d5b7e92ff5545f7e0fd55989ae7c3b4 (diff) | |
download | gcc-6493c502114a908d4b550cb5df658f6dddd7e7ef.tar.gz |
PR c++/16518
PR c++/16337
* decl.c (grokvardecl): Make declspecs parameter const.
(grokdeclarator): Likewise. Adjust accordingly.
* decl.h (grokdeclarator): Adjust declaration.
* parser.c (cp_parser_init_declarator): Do not clear
decl_specifiers->attributes.
PR c++/16518
* g++.dg/parse/mutable1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84646 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.h')
-rw-r--r-- | gcc/cp/decl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.h b/gcc/cp/decl.h index fae386e7133..7a36c64be46 100644 --- a/gcc/cp/decl.h +++ b/gcc/cp/decl.h @@ -32,7 +32,7 @@ enum decl_context /* We need this in here to get the decl_context definition. */ extern tree grokdeclarator (const cp_declarator *, - cp_decl_specifier_seq *, + const cp_decl_specifier_seq *, enum decl_context, int, tree*); #ifdef DEBUG_CP_BINDING_LEVELS |