(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1z/
constexpr-if34.C
// 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()) ;
  }
};