summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete1.C
blob: 7b0d83e608d8b9d5687390fe0e4b8dae66496893 (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++11 } }

struct A
{
  static constexpr A a = 1;  // { dg-error "22:'constexpr const A A::a' has incomplete type" }
  constexpr A(int i) { }
};