Fix context handling of alias-declaration
authorDodji Seketeli <dodji@redhat.com>
Tue, 8 Nov 2011 10:27:34 +0000 (10:27 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 8 Nov 2011 10:27:34 +0000 (11:27 +0100)
commit7d29c953afdd7232bf34cb40eaf28511692b3e77
treeed6788aec0d242532fa9ce54ad04936c2ec78e50
parent7fcefa55251f44ce3933fd4709f23d1b83accdf8
Fix context handling of alias-declaration

gcc/cp/

* decl.c (start_decl): Update comment.
* error.c (dump_alias_template_specialization): Dump the context
of the specialization.
* parser.c (cp_parser_alias_declaration): Call pop_scope on the
pushed scope yielded by start_decl.

gcc/testsuite

* g++.dg/cpp0x/alias-decl-11.C: New test.

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