This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51143] [C++11][DR 1159] Alias template allows class definition
- From: "dodji 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 Nov 2011 16:41:18 +0000
- Subject: [Bug c++/51143] [C++11][DR 1159] Alias template allows class definition
- Auto-submitted: auto-generated
- References: <bug-51143-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51143
--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-11-22 16:41:18 UTC ---
Author: dodji
Date: Tue Nov 22 16:41:10 2011
New Revision: 181626
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181626
Log:
PR c++/51143 - Alias template allows class definition
gcc/cp
PR c++/51143
* parser.c (cp_parser_alias_declaration): Don't allow type
definition in templates.
gcc/testsuite
PR c++/51143
* g++.dg/cpp0x/alias-decl-16.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-16.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog