]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++, gimplify: Implement C++26 P2795R5 - Erroneous behavior for uninitialized reads...
authorThomas Schwinge <tschwinge@baylibre.com>
Mon, 20 Oct 2025 15:36:49 +0000 (17:36 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 20 Oct 2025 19:28:33 +0000 (21:28 +0200)
With commit r16-4212-gf256a13f8aed833fe964a2ba541b7b30ad9b4a76
"c++, gimplify: Implement C++26 P2795R5 - Erroneous behavior for uninitialized reads [PR114457]",
we acquired:

    @@ -181180,8 +184423,8 @@ PASS: c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26  at line 14
    PASS: c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26  at line 15 (test for warnings, line 12)
    PASS: c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26  at line 16 (test for warnings, line 12)
    PASS: c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26 (test for excess errors)
    [-XFAIL:-]{+XPASS:+} c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26 TODO at line 18 (test for warnings, line 19)
    [-XFAIL:-]{+XPASS:+} c-c++-common/goacc/kernels-decompose-pr100280-1.c  -std=c++26 TODO location at line 17 (test for bogus messages, line 10)

As in other OpenACC 'kernels' test cases, the underlying issue again is
PR121975 "Various goacc failures with -ftrivial-auto-var-init=zero" (to be
resolved later on).

PR c++/114457
gcc/testsuite/
* c-c++-common/goacc/kernels-decompose-pr100280-1.c: Skip for
c++26 until PR121975 is fixed.

gcc/testsuite/c-c++-common/goacc/kernels-decompose-pr100280-1.c

index 1c1e22c00ac39ac468653231382e1abcc44b7bde..5198fc95b2b3664d09cd6627441710e90961dfae 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "PR121975" { c++26 } { "*" } { "" } } */
+
 /* Reduced from 'libgomp.oacc-c-c++-common/kernels-loop-2.c'.  */
 
 /* { dg-additional-options "--param openacc-kernels=decompose" } */