https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113688

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
> (In reply to uecker from comment #3)
> > The issue is that struct with ISO C99 flexible array member and GNU
> > zero-sized extension will have different mode but we may want to them to be
> > compatible.
> 
> it is not just GNU zero-sized extension either. it is with 1 sized arrays
> too (from the dup PR 114723). So this is no longer about a GNU extension I
> think.
> 
> That is this ICEs too:
> struct S{int x,y[0];}*a;
> int main(void){
>       struct S{int x,y[];};
> }

Sorry (was copying the wrong testcase):
```
struct S{int x,y[1];}*a;
int main(void){
        struct S{int x,y[];};
}
```

Reply via email to