On Sun, Dec 12, 2021 at 9:04 PM Nayan Deshmukh via Gcc <gcc@gcc.gnu.org> wrote:
> #include <iostream>
> #include <stdint.h>
> #include <cstddef>
> struct A {
>   int a;
>   uint64_t b;
>   int c = -1;
> };

The question becomes is the above a standard layout class or not. I
Noticed clang does not change the rules for layout between C++11 and
C++14 but GCC does.
I don't know the exact rules in the ABI to help you there but I do
think you should file a bug because it definitely looks unexpected
really.

Thanks,
Andrew Pinski

Reply via email to