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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
            Summary|ICE: in                     |[15 Regression] ICE: in
                   |output_constructor_regular_ |output_constructor_regular_
                   |field, at varasm.cc:5833    |field, at varasm.cc:5833
   Target Milestone|---                         |15.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Before GCC 15, this was rejected:
```
<source>:2:8: error: flexible array member in union
    2 |   char a[];
      |        ^
```

And is still rejected by the C++ front-end:
```
<source>:5:26: error: initialization of flexible array member in a nested
context
    5 | const union U4 u4[2] = {{"123"}};
      |                          ^~~~~
```

Reply via email to