Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-conv1.C
blob: aa29acbcb1353c5289164d7f5f3ef83b01d9b8be [
file
] [
log
] [
blame
]
// { dg-do compile { target concepts } }
template
<
class
T
>
concept
False
=
false
;
template
<
class
T
>
struct
A
{
explicit
operator
bool
();
explicit
operator
bool
()
requires
False
<
T
>;
};
int
main
()
{
int
i
{
A
<int>
()
};
// { dg-error "" }
}