Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
pr95386.C
blob: 3c683e5693c14906d70e457a93ea0da91b0e913c [
file
] [
log
] [
blame
]
// PR c++/95386
// { dg-do compile { target concepts } }
template
<typename>
struct
blah
{
typedef
bool
value_type
;
constexpr
operator
value_type
()
{
return
false
;
}
};
template
<
class
T
>
void
fn1
(
T
)
requires
(!
blah
<
T
>());
void
fn2
()
{
fn1
(
0
);
}