// Contributed by Gabriel Dos Reis // { dg-do compile } template struct X { void f() { } }; struct Z : X { }; int main() { Z z; z.X::f(); }