Re: [PATCH] PR c++/51143 - Alias template allows class definition

2011-11-22 Thread Dodji Seketeli
om: Dodji Seketeli Date: Mon, 21 Nov 2011 22:31:10 +0100 Subject: [PATCH] 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

Re: [PATCH] PR c++/51143 - Alias template allows class definition

2011-11-22 Thread Jason Merrill
Do we have a test for allowing a class definition in a non-template alias definition? If not, please add that too. OK with that change. Jason

[PATCH] PR c++/51143 - Alias template allows class definition

2011-11-22 Thread Dodji Seketeli
Hello, As reminded in the audit trail of this PR, we shouldn't allow a type definition in an alias template declaration. Fixed thus, bootstrapped and tested on x86_64-unknown-linux-gnu against trunk. gcc/cp PR c++/51143 * parser.c (cp_parser_alias_declaration): Don't allow type