summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/using31.C
blob: bfeb94f27884cbbdd96c0b9990456c957be6a669 (plain)
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();
}