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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Nathaniel Shead
<nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:90484ea24e7886f01200619a55c2343728362fc6

commit r15-9612-g90484ea24e7886f01200619a55c2343728362fc6
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Wed Apr 30 23:35:51 2025 +1000

    c++/modules: Ensure deduction guides for imported types are reachable
[PR120023]

    In the linked PR, because the deduction guides depend on an imported
    type, we never walk the type and so never call add_deduction_guides.
    This patch ensures that we make bindings for deduction guides if we saw
    any deduction guide at all.

            PR c++/120023

    gcc/cp/ChangeLog:

            * module.cc (depset::hash::find_dependencies): Also call
            add_deduction_guides when walking one.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/dguide-7_a.C: New test.
            * g++.dg/modules/dguide-7_b.C: New test.
            * g++.dg/modules/dguide-7_c.C: New test.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>
    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit fb4583566afdee50aad12e1219610813b44bdff4)

Reply via email to