aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-07-13 21:11:52 +0000
committerMark Mitchell <mark@codesourcery.com>2004-07-13 21:11:52 +0000
commit6b8fb8e4440569a68152595442bb51a3caad8f6e (patch)
tree1e862cf0788265164b6363afd1db1902f296dfd0 /gcc/cp/decl.h
parent9eab91521952852f2d80a8744c805429120400c4 (diff)
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: https://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.h2
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