re PR c++/16518 (mutable specifier only applies to first item in declaration list)
authorMark Mitchell <mark@codesourcery.com>
Tue, 13 Jul 2004 21:11:52 +0000 (21:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 13 Jul 2004 21:11:52 +0000 (21:11 +0000)
commit1ff3c0761f1732883f5c1b5bd5c9b6a6f53c4b49
tree1e862cf0788265164b6363afd1db1902f296dfd0
parent5549179ffbab093da7b35296973c2a287ad60f20
re PR c++/16518 (mutable specifier only applies to first item in declaration list)

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.

From-SVN: r84646
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/mutable1.C [new file with mode: 0644]