PR c++/18747
commit3572e5ae42d63e5c91472ff011d86f468f3f1744
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2012 21:35:33 +0000 (31 21:35 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2012 21:35:33 +0000 (31 21:35 +0000)
tree1524695c56ed99a3ea06e58c582ae2814eb03a05
parentf228b1b9535997cd15a0fd5652a3d6182c4ea9e4
PR c++/18747
* pt.c (check_template_variable): New.
(num_template_headers_for_class): Split out...
* decl.c (grokdeclarator): ...from here.
(start_decl): Remove redundant diagnostic.
* cp-tree.h: Declare them
* parser.c (cp_parser_single_declaration): Call check_template_variable.
.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190842 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error50.C [new file with mode: 0644]