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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-04-15

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
If it was not a VLA type inside the struct we get:

<source>:7:12: warning: initialization of 'struct <anonymous> *' from
incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    7 |     } *p = x;
      |            ^

Which seems better.

Reply via email to