https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106873
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Read https://en.cppreference.com/w/c/language/object#Alignment (for C) and https://en.cppreference.com/w/cpp/language/object#Alignment (for C++). Instead of filing bugs like this and PR 106869, please find somewhere more suitable to learn how C++ works. Both your "bugs" would be appropriate as questions on StackOverflow (in fact they have probably already been answered there, and you could find the answers by searching). "I find GCC's behaviour surprising" is not a bug.