diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-03-14 16:18:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-03-14 16:18:47 +0100 |
commit | 7f22d1c83e74c41116300bebac2e4c492c90b03d (patch) | |
tree | 28e593fa006a1f3b71590fb3304b20abd355d748 /gcc/gcc.cc | |
parent | c35cf160a0ed81570cff6600dba465cf95fa80fa (diff) | |
download | gcc-7f22d1c83e74c41116300bebac2e4c492c90b03d.zip gcc-7f22d1c83e74c41116300bebac2e4c492c90b03d.tar.gz gcc-7f22d1c83e74c41116300bebac2e4c492c90b03d.tar.bz2 |
testsuite: Fix up g++.dg/cpp2a/concepts-lambda3.C [PR108972]
On Fri, Mar 10, 2023 at 01:49:38PM -0500, Jason Merrill via Gcc-patches wrote:
> gcc/testsuite/ChangeLog:
>
> * g++.dg/cpp2a/concepts-lambda3.C: Run at lower std levels,
> but expect errors.
I'm seeing
+UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=c++11 compilation failed to produce executable
+UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=c++14 compilation failed to produce executable
+UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=c++17 compilation failed to produce executable
+UNRESOLVED: g++.dg/cpp2a/concepts-lambda3.C -std=c++98 compilation failed to produce executable
with this change, and if I test with
GXX_TESTSUITE_STDS=98,11,14,17,20,2b make check-g++ -k RUNTESTFLAGS="--target_board=unix\{-m32,-m64,-m64/-fconcepts\} dg.exp=concepts-lambda3.C"
I see even FAILs for the -fconcepts case, so apparently even -std=c++17
-fconcepts isn't enough to make it compile without errors.
The following patch will expect errors for all of c++17_down and will
make the test dg-do compile for that case too, such that the UNRESOLVED
stuff is gone.
2023-03-14 Jakub Jelinek <jakub@redhat.com>
PR c++/108972
PR testsuite/109129
* g++.dg/cpp2a/concepts-lambda3.C: Use dg-do run only for c++20,
for c++17_down dg-do compile. Expect dg-excess-errors for c++17_down
rather than ! concepts.
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions