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

            Bug ID: 128505
           Summary: internal compiler error: in cp_finish_decl, at
                    cp/decl.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```cpp
#pragma omp declare mapper (struct S)
int x;
```

Resulted in this output:
```
<source>:1:37: error: expected unqualified-id before ')' token
<source>:2:5: internal compiler error: in cp_finish_decl, at cp/decl.cc:9674
```

Trunk reproducer (`-fopenmp`): https://godbolt.org/z/8nE9jnzbq

Reply via email to