Debian Codegraph @

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

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