[Bug c++/88578] Static C++ objects with flexible array members overlap when initializes are non-const

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 12 23:20:10 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=102295
   Last reconfirmed|                            |2021-09-12

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
PR 102295 might be a dup of this one.
It does look like the DECL_SIZE is not updated for the C++ front-end while the
C front-end does.

The C front-end has add_flexible_array_elts_to_size .


More information about the Gcc-bugs mailing list