2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / inherit.C
blobdbff7e145eedf18f30d9c02c32c63a8a4cbaedf3
1 // Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
2 // { dg-do compile }
4 template<typename T>
5 struct X { void f() { } };
7 struct Z : X<int> { };
9 int main()
11   Z z;
12   z.X::f();                     // { dg-error ".*" "" }