This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67257] [5/6 regression] Internal compiler error in retrieve_specialization
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Dec 2015 21:47:16 +0000
- Subject: [Bug c++/67257] [5/6 regression] Internal compiler error in retrieve_specialization
- Auto-submitted: auto-generated
- References: <bug-67257-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67257
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Dec 22 21:46:44 2015
New Revision: 231913
URL: https://gcc.gnu.org/viewcvs?rev=231913&root=gcc&view=rev
Log:
PR c++/67257
* parser.c (cp_parser_single_declaration): Reject a class template
that also declares a variable.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn28.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/g++.dg/cpp0x/pr51226.C