// PR c++/113498 // { dg-do compile { target c++20 } } template struct S_Base { static constexpr int D = d; }; template struct S : public S_Base { using S_Base::D; constexpr void f() const requires(D > 0) {} }; int main(int, char**) { S<1> s; s.f(); return 0; }