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

struct A
{
  A() {}
};

struct B
{
  A a[1];
  constexpr B() : a() {} // { dg-error "non-constant|non-.constexpr." }
};