OSDN Git Service

PR c++/9335
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typename17.C
1 // { dg-do compile }
2
3 // This should fail as A::foo<0> is not a typename at all.
4 struct A
5 {
6   template<int> void foo(int i)
7   {
8     typename A::foo<0>(i1); // { dg-error "" }
9   }
10 };