1 // PR c++/30195
2 // { dg-do run }
3 
4 template<class T> struct B
5 {
fooB6     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;
barD14   void bar() { foo(3); }
15 };
16 
main()17 int main()
18 {
19   D<int> x;
20   x.bar();
21   return 0;
22 }
23