/* Bug 117164: ICE with -std=gnu23 inlining function containing call to non-inlined nested function returning variable-size struct. */ /* { dg-do run } */ /* { dg-options "-O3 --param ipa-cp-eval-threshold=0 -fno-guess-branch-probability -fno-inline-small-functions -std=gnu23" } */ void foo (int n) { struct S { int a[n]; }; struct S fn (void) { struct S s; s.a[0] = 42; return s; } fn (); fn (); fn (); } int main (void) { foo (1); }