aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice5.C
blob: c5a117c02dd10567d5412e5897a3e59192209627 (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" }
};