https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101759

            Bug ID: 101759
           Summary: #pragma omp declare simd/variant or oacc routine
                    parsing bug
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

#pragma omp declare simd
int foo (int x = []() { extern int bar (int); return 1; }());
int corge (int = 1);
#pragma omp declare variant (corge) match (user={condition(true)})
int baz (int x = []() { extern int qux (int); return 1; }());
is incorrectly rejected with -fopenmp and
#pragma acc routine
int foo (int x = []() { extern int bar (int); return 1; }());
with -fopenacc.

Reply via email to