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++/51143] [C++11][DR 1159] Alias template allows class definition


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


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