1 // PR c++/82022 2 // { dg-options -std=c++17 } 3 4 template <class T> f2()5void f2() 6 { 7 constexpr bool r = []() constexpr { return false; }(); 8 if constexpr (r); 9 if constexpr ([]() constexpr { return false; }()); 10 } 11 main()12int main() 13 { 14 if constexpr ([]() constexpr { return false; }()); 15 f2<int>(); 16 } 17