https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99797
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Martin Uecker from comment #3) > The C standard says (6.3.2.1p2) J.2 Undefined behavior — The value of an object with automatic storage duration is used while it is indeterminate (6.2.4, 6.7.9, 6.8).