https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122609

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2026-01-27
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #5 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
This is mostly fixed for GCC 16.  We decided however that this is a bit of a
hack; a proper solution would be do something a bit like
DEPENDENT_OPERATOR_TYPE and perform phase 1 qualified lookup at definition
time, and save those results to be reused at instantiation time.

This would fix issues we currently have with correctly ordering the
definitions, and would allow us to mark used names as decl-reachable so that
even uses via #include (not just import std) work correctly; see the XFAILs in
g++.dg/modules/inst-9_*.C.

But this is a much more invasive change that will require a lot more work, so
deferring till GCC 17.

Reply via email to