Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-attribute4.C
blobc52d58f8d32930061aa961d6ef0f445d21ebfd20
1 // Verify we correctly handle the non-dependent attribute expression which
2 // which we used to reject due to double folding.
3 // { dg-do compile { target { c++11 } } }
5 struct A {
6   constexpr int f() const { return __alignof__(int); };
7 };
9 template<class...>
10 void f() {
11   int a __attribute__((aligned(A{}.f())));
14 template void f();