aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice3.C
blob: fccd120855aa28f7ec47a9be2be19def3df01f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/46289
// { dg-do compile { target c++11 } }

struct A
{
  int i;
};

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