Hi Paul, > I expect this is a GCC 4.7 bug
Yes, I confirm: I can reproduce it with gcc 4.7-20120121 built from source. Since this is not a regression, it will most likely not be fixed in time for GCC 4.7.0 [1]. [1] http://gcc.gnu.org/ml/gcc/2012-01/msg00337.html > I pushed the following workaround into Gnulib. I've updated the documentation accordingly: 2012-01-27 Bruno Haible <br...@clisp.org> stdalign: Document the last change. * doc/posix-headers/stdalign.texi: Mention GCC bug 52023. --- doc/posix-headers/stdalign.texi.orig Fri Jan 27 21:18:52 2012 +++ doc/posix-headers/stdalign.texi Fri Jan 27 21:18:09 2012 @@ -17,6 +17,9 @@ This header file is missing on most circa-2011 platforms. @item Clang 3.0's @code{<stdalign.h>} does not define @code{alignof}/@code{_Alignof}. +@item +The @code{alignof} and @code{_Alignof} macros return too large values for +the types @code{double} and @code{long long} in GCC 4.7.0. @end itemize Portability problems not fixed by Gnulib: