diff options
author | Dodji Seketeli <dodji@redhat.com> | 2011-11-08 10:27:34 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2011-11-08 11:27:34 +0100 |
commit | 7d29c953afdd7232bf34cb40eaf28511692b3e77 (patch) | |
tree | ed6788aec0d242532fa9ce54ad04936c2ec78e50 /gcc/cp/error.c | |
parent | 7fcefa55251f44ce3933fd4709f23d1b83accdf8 (diff) | |
download | gcc-7d29c953afdd7232bf34cb40eaf28511692b3e77.zip gcc-7d29c953afdd7232bf34cb40eaf28511692b3e77.tar.gz gcc-7d29c953afdd7232bf34cb40eaf28511692b3e77.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 841366f..d2b6a62 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -341,6 +341,8 @@ dump_alias_template_specialization (tree t, int flags) gcc_assert (alias_template_specialization_p (t)); + if (!(flags & TFF_UNQUALIFIED_NAME)) + dump_scope (CP_DECL_CONTEXT (TYPE_NAME (t)), flags); name = TYPE_IDENTIFIER (t); pp_cxx_tree_identifier (cxx_pp, name); dump_template_parms (TYPE_TEMPLATE_INFO (t), |