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

--- Comment #14 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:97da8fece19caf0277c2be523520d09252821973

commit r16-4433-g97da8fece19caf0277c2be523520d09252821973
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]>

Reply via email to