c++: dump alias-declaration scope
commitac5b356d0567992d8863816e203c7d98b25036dc
authorJason Merrill <jason@redhat.com>
Thu, 31 Mar 2022 22:15:24 +0000 (31 18:15 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 29 Apr 2022 13:21:15 +0000 (29 09:21 -0400)
tree0a4091070271bc469c24555a7a8994e5d3a453e0
parenta282da2243103d79262ca04f5e3a3cc7b9b06935
c++: dump alias-declaration scope

An alias can't be declared with a qualified-id in actual code, but in
diagnostics we want to know which scope it belongs to, and I think a
nested-name-specifier is the best way to provide that.

gcc/cp/ChangeLog:

* error.cc (dump_decl): Check TFF_UNQUALIFIED_NAME.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/alias-decl-1.C: Expect qualified name.
gcc/cp/error.cc
gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C