PR c++/51541 - ICE with invalid identifier in alias-declaration
authorDodji Seketeli <dodji@redhat.com>
Thu, 5 Jan 2012 23:00:14 +0000 (23:00 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Thu, 5 Jan 2012 23:00:14 +0000 (00:00 +0100)
commit45a29025db259d111bcb5093ddda1ef4ef416a19
tree2b51c15cf590457b8907aa8174ec15416d537865
parentc3e686a350915a66b0761fa825fc162ef0010c3e
PR c++/51541 - ICE with invalid identifier in alias-declaration

gcc/cp/

PR c++/51541
* parser.c (cp_parser_alias_declaration): Get out early upon
errors in the identifier or the attributes.

gcc/testsuite/

PR c++/51541
* g++.dg/cpp0x/alias-decl-18.C: New test.

From-SVN: r182935
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-18.C [new file with mode: 0644]