This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32056] Storage classes on template parameters



------- Comment #1 from paolo at gcc dot gnu dot org  2009-11-16 08:31 -------
Subject: Bug 32056

Author: paolo
Date: Mon Nov 16 08:31:26 2009
New Revision: 154198

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154198
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/template/error44.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl.h
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32056


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]