summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/template/using20.C
blob: 1df9549cd6c8468027af6e4728818b70e97ff4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/51925

struct E
{
  int e ();
};
template <typename T1>
struct G : public E
{
  using E::e;
  template <int> void e ();
  void f () { e <0> (); }
};
int f(void)
{
  G<int> a;
  a.f();
}
OpenPOWER on IntegriCloud