Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-99.C
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 } }
};