summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-template2.C
blob: 71eb559a24c5607df63f2df7bd578ad7bb3c247f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }

template <class T> struct A
{
  T t;
  constexpr A() { }		// { dg-error "::t" "" { target c++17_down } }
};

int main()
{
  constexpr A<int> a;		// { dg-error "A()" }
}