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
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
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