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