https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102295
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the C front-end has add_flexible_array_elts_to_size in c/c-decl.c which sets the DECL_SIZE to be correct.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 12 Sep 2021 16:15:07 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102295
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the C front-end has add_flexible_array_elts_to_size in c/c-decl.c which sets the DECL_SIZE to be correct.