blob: 4d3953d09838d3d68514ab512d4f7180b82bce62 [file] [log] [blame]
// 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 } }
};