This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61447] _Alignof returns incorrect results for some types/archs
- From: "bugdal at aerifal dot cx" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jun 2014 16:21:44 +0000
- Subject: [Bug c/61447] _Alignof returns incorrect results for some types/archs
- Auto-submitted: auto-generated
- References: <bug-61447-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61447
--- Comment #8 from Rich Felker <bugdal at aerifal dot cx> ---
There's already the GNU C __alignof__ which is free to do whatever GCC prefers,
so I fail to see the usefulness of making _Alignof do something nonstandard
(and IMO, utterly illogical) that might conflict with future standards. I would
prefer that __Alignof(expr) produce either an error, or
__Alignof(__typeof__(expr)).