aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-07-23 11:37:31 -0400
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:48 +0200
commitb4b4e9f51b37e5e12f81da5fa0a8fa6db2b3614a (patch)
treedcbe973aefa9ee3ecfe35f009619dc894b2f284d /gcc/doc
parentb1b2c26c374435f081a59aae149a6661dfd70eb8 (diff)
downloadgcc-b4b4e9f51b37e5e12f81da5fa0a8fa6db2b3614a.zip
gcc-b4b4e9f51b37e5e12f81da5fa0a8fa6db2b3614a.tar.gz
gcc-b4b4e9f51b37e5e12f81da5fa0a8fa6db2b3614a.tar.bz2
c++: missing SFINAE during alias CTAD [PR115296]
During the alias CTAD transformation, if substitution failed for some guide we should just silently discard the guide. We currently do discard the guide, but not silently, as in the below testcase which we diagnose forming a too-large array type when transforming the user-defined deduction guides. This patch fixes this by using complain=tf_none instead of tf_warning_or_error throughout alias_ctad_tweaks. PR c++/115296 gcc/cp/ChangeLog: * pt.cc (alias_ctad_tweaks): Use complain=tf_none instead of tf_warning_or_error. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/class-deduction-alias23.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions