This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78620] C++11, Padding bytes not zero-intialized when POD is initialized with compiler generated default constructor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2016 13:24:24 +0000
- Subject: [Bug c++/78620] C++11, Padding bytes not zero-intialized when POD is initialized with compiler generated default constructor
- Auto-submitted: auto-generated
- References: <bug-78620-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78620
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, I missed the first line off that actually does the initialization, sorry!
struct tm tt1;
fprintf(stderr, "no initialization\n");
print(&tt1);
*That* is default-initialization (which for this type performs no
initialization).