https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94937

--- Comment #15 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced:

struct B {
  static constexpr bool foo() { return false; }
};

template<typename T>
struct C {
  static void bar ()
  {
    if constexpr (B::foo()) ;
  }
};

Reply via email to