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 .