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

struct A
{
  int i = 0;
};

struct B
{
  A a;
  // P0960R3 allows paren-init.
  constexpr B() : a(0) {} // { dg-error "no matching function" "" { target c++17_down } }
};