This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71885] Incorrect code generated with -01, memset() function call is missing
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2016 08:37:00 +0000
- Subject: [Bug c++/71885] Incorrect code generated with -01, memset() function call is missing
- Auto-submitted: auto-generated
- References: <bug-71885-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71885
--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
See Initializers 8.6.12:
When storage for an object with automatic or dynamic storage duration is
obtained, the object has an indeterminate value, and if no initialization is
performed for the object, that object retains an indeterminate value until that
value is replaced (5.17). [ Note: Objects with static or thread storage
duration are zero-initialized, see 3.6.2. — end note ] If an indeterminate
value is produced by an evaluation, the behavior is undefined...