1 // PR c++/58273
2 
3 class A {};
4 class B
5 {
6   int goo(A);
7 };
8 template<typename E>
9 class D : public B
10 {
foo(A t)11   void foo(A t)
12   {
13     int const i(B::goo(t));
14   }
15 };
16