https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123876
Bug ID: 123876
Summary: ICE: Segmentation fault with asm goto and simd
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: iamanonymous.cs at gmail dot com
Target Milestone: ---
Compile this testcase with -fopenmp, causing a segmentation fault.
```
void main() {
a:
int b;
#pragma omp simd
for (b = 0; b < 4; b++)
__asm__ goto("" : : : : a);
}
```
Compiler Explorer: https://godbolt.org/z/Mb4qfGeYz
I'm not sure if this bug is a duplicate of Bug 123386.