Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template2.C
blob71eb559a24c5607df63f2df7bd578ad7bb3c247f
1 // { dg-do compile { target c++11 } }
3 template <class T> struct A
5   T t;
6   constexpr A() { }             // { dg-error "::t" "" { target c++17_down } }
7 };
9 int main()
11   constexpr A<int> a;           // { dg-error "A()" }