https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94103
--- Comment #14 from rguenther at suse dot de <rguenther at suse dot de> --- On March 20, 2020 5:29:24 PM GMT+01:00, ch3root at openwall dot com <gcc-bugzi...@gcc.gnu.org> wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94103 > >--- Comment #13 from Alexander Cherepanov <ch3root at openwall dot com> >--- >(In reply to rguent...@suse.de from comment #11) >> I think if the user writes a long double store then padding becomes >> undefined so the testcase in comment#1 in PR61872 is technically >> undefined IMHO. > >Sure, but why not the same for structs? >From a language Pov that's the same. But memcpy and friends work on any dynamic type so have to copy all bytes.