https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71660
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #18 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Peter Cordes from comment #13) > Note that > gcc's implementation of C++11/14 alignof doesn't match it's C11 _Alignof > behaviour. g++ alignof gives you the "recommended" alignment, like > __alignof__, rather than the minimum where you will ever find a value of > this type. See https://gcc.gnu.org/ml/gcc-patches/2013-12/msg00435.html and > bug 52023 for the reasons behind changing C11 _Alignof but not C++14 > alignof. (On reading the standard, I'm not sure I agree; I think C++14 > should be returning 4 for alignof(long long) with -m32 in the SysV ABI.) This has now been fixed, BTW (bug 69560).