diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-09-22 06:27:48 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-09-22 06:27:48 -0400 |
commit | 1fea14def849dd38b098b0e2d54e64801f9c1f43 (patch) | |
tree | 26422a99f7f61119899be23812fd97e30ad663db /libphobos/src/std/regex | |
parent | 6f902a42b0afe3f3145bcb864695fc290b5acc3e (diff) | |
download | gcc-1fea14def849dd38b098b0e2d54e64801f9c1f43.zip gcc-1fea14def849dd38b098b0e2d54e64801f9c1f43.tar.gz gcc-1fea14def849dd38b098b0e2d54e64801f9c1f43.tar.bz2 |
c++: missing SFINAE in grok_array_decl [PR111493]
We should guard both the diagnostic and backward compatibilty fallback
code with tf_error, so that in a SFINAE context we don't issue any
diagnostics and correctly treat ill-formed C++23 multidimensional
subscript operator expressions as such.
PR c++/111493
gcc/cp/ChangeLog:
* decl2.cc (grok_array_decl): Guard diagnostic and backward
compatibility fallback code paths with tf_error.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/subscript15.C: New test.
Diffstat (limited to 'libphobos/src/std/regex')
0 files changed, 0 insertions, 0 deletions