------- Comment #1 from howarth at nitro dot med dot uc dot edu 2007-12-24 20:04 ------- Andrew, Changing the testcase to...
extern "C" void abort(); struct A { double a; } sa; struct B { double b; char c; } sb; int main() { if (__alignof (sa) != __alignof (sa.a) || __alignof (sb) != __alignof (sb.b)) abort(); } still results in the testcase failing on powerpc-apple-darwin9. According to your argument shouldn't it now be passing since both instances of the double are now first in the structs? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27221