aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-array-bounds.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-02-09 12:58:35 -0800
committerJason Merrill <jason@redhat.com>2023-03-09 10:25:46 -0500
commitafe1f0c251d0429069c2414d4f3f14042efc174f (patch)
tree2b40a1943b30ad0d90ecca5a2410343bd0431dc4 /gcc/gimple-array-bounds.cc
parent9e6170098d5e7756e85e880f8f4cb18e885a64fd (diff)
downloadgcc-afe1f0c251d0429069c2414d4f3f14042efc174f.zip
gcc-afe1f0c251d0429069c2414d4f3f14042efc174f.tar.gz
gcc-afe1f0c251d0429069c2414d4f3f14042efc174f.tar.bz2
c++: CTAD for less-specialized alias template [PR102529]
The standard was unclear what happens with the transformation of a deduction guide if the initial template argument deduction fails for a reason other than not deducing all the arguments; my implementation assumed that the right thing was to give up on the deduction guide. But in consideration of CWG2664 this week I realized that we get a better result by just continuing with an empty set of deductions, so the alias deduction guide is the same as the original deduction guide plus the deducible constraint. DR 2664 PR c++/102529 gcc/cp/ChangeLog: * pt.cc (alias_ctad_tweaks): Continue after deduction failure. gcc/testsuite/ChangeLog: * g++.dg/DRs/dr2664.C: New test. * g++.dg/cpp2a/class-deduction-alias15.C: New test.
Diffstat (limited to 'gcc/gimple-array-bounds.cc')
0 files changed, 0 insertions, 0 deletions