https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122192
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Patrick Palka <[email protected]>: https://gcc.gnu.org/g:402d57846c9acca15ff80e192e3ede1f179eb8f2 commit r15-10462-g402d57846c9acca15ff80e192e3ede1f179eb8f2 Author: Patrick Palka <[email protected]> Date: Tue Oct 14 12:56:23 2025 -0400 c++: mem-initializer-id qualified name lookup is type-only [PR122192] Since a mem-initializer needs to be able to initialize any base class, lookup for which is type-only, we in turn need to make mem-initializer-id qualified name lookup type-only too. PR c++/122192 gcc/cp/ChangeLog: * parser.cc (cp_parser_mem_initializer_id): Pass class_type instead of typename_type to cp_parser_class_name in the nested-name-specifier case. gcc/testsuite/ChangeLog: * g++.dg/template/dependent-base6.C: Verify mem-initializer-id qualified name lookup is type-only too. Reported-by: Vincent X Reviewed-by: Jason Merrill <[email protected]> (cherry picked from commit 97da8fece19caf0277c2be523520d09252821973)
