summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ice3.C
blob: 23903bca78d61fc83f9102c8c9f882d80ec25b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/46289
// { dg-options -std=c++0x }

struct A
{
  int i;
};

struct B
{
  A a;
  constexpr B(): a({1,2}) { }	// { dg-error "" }
};