[Bug c++/69560] x86_64: alignof(uint64_t) produces incorrect results with -m32

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 30 12:31:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to David Merillat from comment #8)
> One thing remains.  As a result of 52023, C11 _Alignof was "fixed" to return
> the smallest possible alignment, but C++11 was left alone "deliberately",
> although "C++11 will need examining to determine what is right for alignof
> there".  I didn't see any such discussion for C++11 or C++14 alignof(), and
> by my reading of the specifications, they are defined almost identically to
> C11 _Alignof.

See Joseph's explanation at:
https://gcc.gnu.org/ml/gcc-patches/2013-12/msg00435.html


More information about the Gcc-bugs mailing list