https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116141
Bug ID: 116141
Summary: ICE with conditional operator
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: muecker at gwdg dot de
Target Milestone: ---
There is another ICE involving size expressions, this time related to the
conditional operator.
int main()
{
struct vec_int { int N; } p = { 0 };
__auto_type vp = 0 ? ({ struct vec_int *q = &p; (int(*)[q->N])(0); }) : 0;
(*(vp + 1))[5];
}
https://godbolt.org/z/oGrPs15Kh