// PR c++/101247 // { dg-do compile { target concepts } } // A variant of concepts-memtmpl3.C where f is defined outside A's definition. template struct A { template static constexpr bool d = true; struct B; template struct C; }; template struct A::B { template static void f(c) requires d; }; template template struct A::C { template static void f(c) requires d; static void g() requires d; }; int main() { A::B::f(0); A::C::f(0); A::C::g(); }