This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78620] C++11, Padding bytes not zero-intialized when POD is initialized with compiler generated default constructor


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]