// PR c++/105758 struct A { void foo(int); }; template struct Z : A { static Z *z; void bar(); }; template Z *Z::z; template void Z::bar() { z->foo(0); }