This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jan 2017 14:01:59 +0000
- Subject: [Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target
- Auto-submitted: auto-generated
- References: <bug-79024-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79024
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please read 3.11 more carefully.
"The alignment required for a type might be different when it is used as the
type of a complete object and when it is used as the type of a subobject. [...]
The result of the alignof operator reflects the alignment requirement of the
type in the complete-object case."