blob: 0ddc75c78eea1f475d1490fc9f5c294a9db003dc [file] [log] [blame]
// PR c++/105758
struct A {
void foo(int);
};
template<class>
struct Z : A {
static Z *z;
void bar();
};
template<class T>
Z<T> *Z<T>::z;
template<class T>
void Z<T>::bar() {
z->foo(0);
}