https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118325
Bug ID: 118325
Summary: ICE with nested function and non-local jump
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: uecker at gcc dot gnu.org
Target Milestone: ---
This ICEs on trunk. Could be a duplicate of 40317 but this example works before
15.
void f(void*);
void z()
{
void g()
{
__label__ out;
int h(void) { goto out; }
f(h);
out:;
}
f(g);
}
https://godbolt.org/z/PePTa1cr7