Debian Codegraph @

gcc/testsuite/g++.dg/lookup/using37.C

raw
1 // PR c++/30195
2 // { dg-do run }
3
4 template<class T> struct B
5 {
6 void foo(T) {}
7 };
8
9 template<class T>
10 struct D : B<int>, B<double>
11 {
12 using B<int>::foo;
13 using B<double>::foo;
14 void bar() { foo(3); }
15 };
16
17 int main()
18 {
19 D<int> x;
20 x.bar();
21 return 0;
22 }