re PR c++/25300 (ICE with g++.dg/template/inherit.C)
[gcc.git] / gcc / testsuite / g++.dg / template / inherit.C
1 // Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
2 // { dg-do compile }
3
4 template<typename T>
5 struct X { void f() { } };
6
7 struct Z : X<int> { };
8
9 int main()
10 {
11 Z z;
12 z.X::f(); // { dg-error "template parameters" "" }
13 }