aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/using37.C
blob: a71206e89f763b10a394cab283a42c924719b3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/30195
// { dg-do run }

template<class T> struct B
{
    void foo(T) {}
};

template<class T>
struct D : B<int>, B<double>
{
  using B<int>::foo;
  using B<double>::foo;
  void bar() { foo(3); }
};

int main()
{
  D<int> x;
  x.bar();
  return 0;
}