diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 08:31:26 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 08:31:26 +0000 |
commit | 3b901c355f6dcf946ed6e12c057e3ca3a65547e5 (patch) | |
tree | 1e489fe775913d9cc90f3d4f84139b663da9da30 /gcc/cp/decl.h | |
parent | 33570e910e0087f1e0d55241211e825c1be42f4e (diff) | |
download | gcc-3b901c355f6dcf946ed6e12c057e3ca3a65547e5.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154198 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.h')
-rw-r--r-- | gcc/cp/decl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.h b/gcc/cp/decl.h index d6e3c83bcbf..a8a2b784c28 100644 --- a/gcc/cp/decl.h +++ b/gcc/cp/decl.h @@ -23,6 +23,7 @@ enum decl_context { NORMAL, /* Ordinary declaration */ FUNCDEF, /* Function definition */ PARM, /* Declaration of parm before function body */ + TPARM, /* Declaration of template parm */ CATCHPARM, /* Declaration of catch parm */ FIELD, /* Declaration inside struct or union */ BITFIELD, /* Likewise but with specified width */ |