[Bug c/106843] gcc with -O2 corrupt data on stack
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 6 02:59:26 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
6.5.2.5 Compound literals
5 The value of the compound literal is that of an unnamed object initialized by
the initializer list. If the compound literal occurs outside the body of a
function, the object has static storage duration; otherwise, it has automatic
storage duration associated with the enclosing block.
More information about the Gcc-bugs
mailing list