OSDN Git Service

Fix context handling of alias-declaration
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 10:27:34 +0000 (10:27 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 10:27:34 +0000 (10:27 +0000)
commit7961105f7642980ba4a85841241949ed7173c61c
treeed6788aec0d242532fa9ce54ad04936c2ec78e50
parent4ac56fde83c3d304f1dabe96946e25f422e374f7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181152 138bc75d-0d04-0410-961f-82ee72b054a4
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]