[Bug c/99797] accessing uninitialized automatic variables
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 28 07:16:54 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99797
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (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).
6.9p10
If an object that has automatic storage duration is not initialized explicitly,
its value is indeterminate.
Is that enough?
More information about the Gcc-bugs
mailing list