diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-04-30 23:35:51 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-05-01 09:51:41 +1000 |
commit | fb4583566afdee50aad12e1219610813b44bdff4 (patch) | |
tree | 2f940899096cfc689f9f4c6dcafac15dbc4346ef /gcc/testsuite/gcc.dg/cpp/cmdlne-dD.c | |
parent | d613678c94f06809656e56b37f314501b37a5ddd (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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 <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/cmdlne-dD.c')
0 files changed, 0 insertions, 0 deletions