https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126284
Bug ID: 126284
Summary: C23 ICE on pointer to a VLA of a tagged type
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: kees at outflux dot net
Target Milestone: ---
Here's the PoC:
struct S { int x; };
void f (int n) { struct { struct S (*p)[n]; } s; }
gcc -std=c23 -c poc.c
poc.c:2:34: internal compiler error: in c_reconstruct_complex_type, at
c/c-typeck.cc:594
https://godbolt.org/z/fsWTd4MG7
Okay in GCC 16.1.