blob: 6e0b2597a53ab69d4033157af9c8587ba0f880b4 [file] [log] [blame]
// PR c++/94937 - ICE with -Wall and constexpr if.
// { dg-do compile { target c++17 } }
// { dg-options "-Wall" }
struct B {
static constexpr bool foo() { return false; }
};
template<typename T>
struct C {
static void bar ()
{
if constexpr (B::foo()) ;
}
};