> Should foo[n] really return different results depending on the value of > n? That feels wrong to me.
This is (and was) the odd case for x86_64. We accept but gcc rejects this ----------------------------- long long int foo[1]; long long int bar[2]; static_assert(alignof(foo) == 8, "foo"); static_assert(alignof(bar) == 16, "bar"); ----------------------------- Richard, gcc is correct in here, right? If so I can try to code a patch replacing RefAsPointee with a more generic ForAlignof. Cheers, Rafael _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
