blob: a1eaf320221f4930d4758a14d673a2e5828ea123 [file] [log] [blame]
// PR c++/85200
// { dg-do compile { target c++17 } }
struct A{
constexpr operator int(){ return 0; }
};
template < typename >
void f(){
[](auto known){
if constexpr(constexpr int k = known);
}(A{});
}
int main(){
f<int>();
}