http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56859
Stephan Tolksdorf <st at quanttec dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |st at quanttec dot com --- Comment #6 from Stephan Tolksdorf <st at quanttec dot com> --- The following example still fails with the current trunk GCC. Should this bug be reopened, or should I file a new one? template <int N> void test() { constexpr int N2 = N; typedef int T alignas(N2); // error: requested alignment is not an integer constant } int main() { test<4>(); return 0; }