Sign in
gnu
/
gcc
/
93d183a5fff92d80c0545b7a7ce9b77fe7a258f7
/
.
/
libstdc++-v3
/
testsuite
/
20_util
/
any
/
cons
/
101034.cc
blob: 55f550a839e7e6bb2109d76703d59ff320f5b969 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
// PR libstdc++/101034 - wrong constraint in std::any's constructor
#include
<any>
struct
S
{
S
(
std
::
initializer_list
<int>
&,
int
)
{}
};
std
::
any a
(
std
::
in_place_type
<
S
>,
{
0
},
0
);
S
&
s
=
a
.
emplace
<
S
>({
0
},
0
);