https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114764
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <[email protected]>: https://gcc.gnu.org/g:6b7f4b587b5cb95ea3ed2f543841a3d1ed6f580d commit r16-5425-g6b7f4b587b5cb95ea3ed2f543841a3d1ed6f580d Author: Patrick Palka <[email protected]> Date: Wed Nov 19 11:10:38 2025 -0500 c++: current inst name lookup within noexcept-spec [PR122668] Since we don't implement deferred noexcept-spec parsing of a friend declaration, the r15-2117 change diagnosing name lookup failure for the current instantiation ahead of time needs to be suppressed in this case. PR c++/122668 PR c++/114764 gcc/cp/ChangeLog: * pt.cc (dependentish_scope_p): Return true for the current instantiation from within an immediately parsed noexcept-spec. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/noexcept91.C: New test. Reviewed-by: Jason Merrill <[email protected]>
