]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: alias_ctad_tweaks ICE w/ inherited CTAD [PR119687]
authorPatrick Palka <ppalka@redhat.com>
Thu, 10 Apr 2025 19:49:12 +0000 (15:49 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 10 Apr 2025 19:49:12 +0000 (15:49 -0400)
commit493974aa0ad8b94dbeb61f00d2acc57c94fd4809
tree3d5632edbd2cd73c05137bd4a486f25fd3e56ddc
parent1f32b87117b0e2ecc33b844d929d723de3fe8085
c++: alias_ctad_tweaks ICE w/ inherited CTAD [PR119687]

With inherited CTAD the set of guides may be a two-dimensional overload
set (i.e. OVERLOADs of OVERLOADs) so alias_ctad_tweaks (which also does
the inherited CTAD transformation) needs to use the 2D-aware lkp_iterator
instead of ovl_iterator, or better yet use the more idiomatic lkp_range.

PR c++/119687

gcc/cp/ChangeLog:

* pt.cc (alias_ctad_tweaks): Use lkp_range / lkp_iterator
instead of ovl_iterator.

gcc/testsuite/ChangeLog:

* g++.dg/cpp23/class-deduction-inherited8.C: New test.

Reviewed-by: Jason Merill <jason@redhat.com>
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp23/class-deduction-inherited8.C [new file with mode: 0644]