[Bug c++/102295] ELF symbol sizes for variable-length objects are too small (C++)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 13 20:40:34 GMT 2021


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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Note, we have other issues, consider:
> struct A
> {
>   float a;
>   int b[];
> };
> 
> int x[4];
> struct A c = { 42.0f, { ++x[0], ++x[1], ++x[2], ++x[3] } };

Right that is PR 88578 .


More information about the Gcc-bugs mailing list