blob: 69af7753116b11e132cf52d4f30efe372850f77d [file] [log] [blame]
// PR c++/84421
// { dg-do compile { target c++17 } }
struct A{
constexpr operator bool() const { return true; }
};
int main(){
auto f = [](auto v){
if constexpr(v){}
};
A a;
f(a);
}