Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
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 } }
};