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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-01-16
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am 99% sure this is because the struct is anonymous in C++ and a's address is
not taken so it is assumed not to be used outside of the TU due to that.

Once I put a name on the struct, the "miscompiling" is gone.


Where is this reduced from because I think it is undefined C++ code.

Reply via email to