aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2009-11-16 08:31:26 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-11-16 08:31:26 +0000
commit0229b692f4cba2d23b960284c79384b6f5b2309a (patch)
tree1e489fe775913d9cc90f3d4f84139b663da9da30 /gcc/cp/parser.c
parent0fc4f703e53c1282e7ff8613b235194ae815e721 (diff)
downloadgcc-0229b692f4cba2d23b960284c79384b6f5b2309a.zip
gcc-0229b692f4cba2d23b960284c79384b6f5b2309a.tar.gz
gcc-0229b692f4cba2d23b960284c79384b6f5b2309a.tar.bz2
re PR c++/32056 (Storage classes on template parameters)
cp/ 2009-11-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/32056 * decl.h (enum decl_context): Add TPARM enumerator. * decl.c (grokdeclarator): Per 14.1/2, error out if a storage class is specified in a template parameter declaration. * parser.c (cp_parser_template_parameter): Call grokdeclarator with TPARM as third argument. testsuite/ 2009-11-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/32056 * testsuite/g++.dg/template/error44.C: New. From-SVN: r154198
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 05def24..3a4b409 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -10508,7 +10508,7 @@ cp_parser_template_parameter (cp_parser* parser, bool *is_non_type,
parm = grokdeclarator (parameter_declarator->declarator,
&parameter_declarator->decl_specifiers,
- PARM, /*initialized=*/0,
+ TPARM, /*initialized=*/0,
/*attrlist=*/NULL);
if (parm == error_mark_node)
return error_mark_node;