https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89511
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Paolo Carlini from comment #7) > Thus, to repeat, if we only want to avoid the regression part, it would be > just matter of changing the code I added for c++/60265 to do qscope = > CP_TYPE_CONTEXT (qscope) only when we end-up in a namespace. On the other > hand, if we want to go beyond that we have a little more non-trivial work to > do. I think I'll do just that. I don't know what we would use as the USING_DECL_SCOPE in this case; anything other than a NAMESPACE_DECL won't work currently. do_nonmember_using_decl uses qualified_namespace_lookup so that would require further changes. And maybe the DR will be resolved in such a way that both examples will be ill-formed.