// PR c++/9488 // Origin: Wolfgang Bangerth // { dg-do compile } struct A { template void foo() {} }; template struct B { void bar() { A().foo(); } }; template struct B;