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

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

https://gcc.gnu.org/g:fb4583566afdee50aad12e1219610813b44bdff4

commit r16-319-gfb4583566afdee50aad12e1219610813b44bdff4
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>

Reply via email to