re PR c++/67257 (Internal compiler error in retrieve_specialization)
authorJason Merrill <jason@redhat.com>
Tue, 22 Dec 2015 21:46:44 +0000 (16:46 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Dec 2015 21:46:44 +0000 (16:46 -0500)
commitdfc9c481360183f1b2c4914b66c4303babc04df1
treefc21bcd36ff3e3b7caed810c74be397df05a2788
parentd2889b14274f623af7022b060cd49b08ada66038
re PR c++/67257 (Internal compiler error in retrieve_specialization)

PR c++/67257
* parser.c (cp_parser_single_declaration): Reject a class template
that also declares a variable.

From-SVN: r231913
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/pr51226.C
gcc/testsuite/g++.dg/cpp1y/auto-fn28.C [new file with mode: 0644]