[Bug c++/69560] x86_64: alignof(uint64_t) produces incorrect results with -m32
david.merillat at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 30 01:20:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560
--- Comment #8 from David Merillat <david.merillat at gmail dot com> ---
(In reply to Andrew Pinski from comment #6)
> Actually bug 52023 is a better reason for the difference between __alignof__
> and _Alignof.
>
> *** This bug has been marked as a duplicate of bug 52023 ***
Yes, that bug dealt with the issue more thoroughly, dealing with the issues I
am looking at. I wish I had found it earlier.
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.
So I think the central issue in this bug remains open. I'll leave it to
someone else whether to reopen the case.
More information about the Gcc-bugs
mailing list