This is the mail archive of the gcc-cvs@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]

r181626 - in /trunk/gcc: cp/ChangeLog cp/parser...


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]