https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128320
Bug ID: 128320
Summary: FAIL: g++.dg/gomp/deprecate-1.C -std=c++20 expected
multiline pattern lines 119-121
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-*
Target: hppa*-*-*
Build: hppa*-*-*
We have these fails:
FAIL: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
119-121
FAIL: g++.dg/gomp/deprecate-1.C -std=c++20 (test for excess errors)
FAIL: g++.dg/gomp/deprecate-1.C -std=c++98 expected multiline pattern lines
119-121
FAIL: g++.dg/gomp/deprecate-1.C -std=c++98 (test for excess errors)
FAIL: g++.dg/gomp/deprecate-1.C -std=c++29 expected multiline pattern lines
119-121
FAIL: g++.dg/gomp/deprecate-1.C -std=c++29 (test for excess errors)
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../xg++
-B
/home/dave/gnu/gcc/objdir64/gcc/testsuite/g++/../../
/home/dave/gnu/gcc/gcc/gcc/
testsuite/g++.dg/gomp/deprecate-1.C -fdiagnostics-plain-output -nostdinc++
-I/ho
me/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux
11.11 -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/
home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/gcc/gcc/libstdc++-
v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util
-fmessa
ge-length=0 -std=c++20 -fopenmp -fdiagnostics-show-caret -Wdeprecated-openmp -S
-o deprecate-1.s
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:3:34: warning:
sp
ecifying the list items as arguments to the modifiers is deprecated since
OpenMP
5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (val(a) : 1) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~
---- - -
val, step (1)
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:10:34: warning:
s
pecifying the list items as arguments to the modifiers is deprecated since
OpenM
P 5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (val(b)) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~
---- -
: val
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:19:34: warning:
s
pecifying the list items as arguments to the modifiers is deprecated since
OpenM
P 5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (ref(a) : 1) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~
---- - -
ref, step (1)
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:26:34: warning:
s
pecifying the list items as arguments to the modifiers is deprecated since
OpenM
P 5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (ref(b)) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~
---- -
: ref
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:35:34: warning:
s
pecifying the list items as arguments to the modifiers is deprecated since
OpenM
P 5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (uval(a) : 1) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~~
----- - -
uval, step (1)
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:42:34: warning:
s
pecifying the list items as arguments to the modifiers is deprecated since
OpenM
P 5.2 [-Wdeprecated-openmp]
#pragma omp declare simd linear (uval(b)) /* { dg-warning "specifying
the
list items as arguments to the modifiers is deprecated since OpenMP 5.2" } */
^~~~
----- -
: uval
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:52:28: warning:
'
to' clause with 'declare target' deprecated since OpenMP 5.2, use 'enter'
[-Wdep
recated-openmp]
#pragma omp declare target to (v) /* { dg-warning "'to' clause
wi
th 'declare target' deprecated since OpenMP 5.2, use 'enter'" } */
^~
enter
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C: In function
'voi
d bar()':
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:63:35: warning:
'
-' operator for reductions deprecated in OpenMP 5.2 [-Wdeprecated-openmp]
#pragma omp parallel reduction (-:r) /* { dg-warning "'-' operator
f
or reductions deprecated in OpenMP 5.2" } */
^
+
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:73:27: warning:
'sink' modifier with 'depend' clause deprecated since OpenMP 5.2, use with
'doacross' [-Wdeprecated-openmp]
#pragma omp ordered depend (sink: i - 1) /* { dg-warning "'sink'
modifier with 'depend' clause deprecated since OpenMP 5.2, use with 'doacross'"
} */
^~~~~~
doacross
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:79:27: warning:
'source' modifier with 'depend' clause deprecated since OpenMP 5.2, use with
'doacross' [-Wdeprecated-openmp]
#pragma omp ordered depend (source) /* { dg-warning "'source'
modifier with 'depend' clause deprecated since OpenMP 5.2, use with 'doacross'"
} */
^~~~~~
doacross
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:86:26: warning:
'map' clause modifiers without comma separation is deprecated since OpenMP 5.2
[-Wdeprecated-openmp]
#pragma omp target map (always close present, tofrom: r) /* {
dg-warning "'map' clause modifiers without comma separation is deprecated since
OpenMP 5.2" } */
^
,
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:86:26: warning:
'map' clause modifiers without comma separation is deprecated since OpenMP 5.2
[-Wdeprecated-openmp]
#pragma omp target map (always close present, tofrom: r) /* {
dg-warning "'map' clause modifiers without comma separation is deprecated since
OpenMP 5.2" } */
^
,
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:96:24: warning:
'master' affinity deprecated since OpenMP 5.1, use 'primary'
[-Wdeprecated-openmp]
#pragma omp parallel proc_bind (master) /* { dg-warning "'master'
affinity deprecated since OpenMP 5.1, use 'primary'" } */
^~~~~~~~~
------
primary
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:104:24: warning:
'master' construct deprecated since OpenMP 5.1, use 'masked'
[-Wdeprecated-openmp]
#pragma omp parallel master /* { dg-warning "'master'
construct deprecated since OpenMP 5.1, use 'masked'" } */
^~~~~~
masked
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:111:132:
warning: 'master' construct deprecated since OpenMP 5.1, use 'masked'
[-Wdeprecated-openmp]
#pragma omp master /* { dg-warning "'master'
construct deprecated since OpenMP 5.1, use 'masked'" } */
^
/home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/gomp/deprecate-1.C:117:71: warning:
'default' clause on metadirectives deprecated since OpenMP 5.2, use 'otherwise'
[-Wdeprecated-openmp]
pragma omp metadirective when (device={arch("blahblah")}: nothing) default
(nothing) /* { dg-warning "'default' clause on metadirectives
deprecated since OpenMP 5.2, use 'otherwise'" } */
^~~~~~~
otherwise
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 3)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 10)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 19)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 26)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 35)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 42)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 52)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 63)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 73)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 79)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 86)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 96)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 104)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 111)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 (test for warnings, line 117)
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
5-8
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
12-15
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
21-24
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
28-31
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
37-40
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
44-47
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
54-56
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
65-67
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
75-77
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
81-83
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
88-93
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
98-101
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
106-108
PASS: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
113-114
FAIL: g++.dg/gomp/deprecate-1.C -std=c++20 expected multiline pattern lines
119-121
FAIL: g++.dg/gomp/deprecate-1.C -std=c++20 (test for excess errors)
Excess errors:
pragma omp metadirective when (device={arch("blahblah")}: nothing) default
(nothing) /* { dg-warning "'default' clause on metadirectives
deprecated since OpenMP 5.2, use 'otherwise'" } */
^~~~~~~
otherwise
The parser outputs ' ' instead of ' #' and this causes a match failure. Note
this only happens on c++.