1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/105223 struct ServiceReferenceBase { void operator=(int); }; template<class> struct ServiceReference : ServiceReferenceBase { void foo() { operator=(0); } using ServiceReferenceBase::operator=; }; int main() { ServiceReference<int> sr; sr.foo(); }