1// { dg-do compile } 2 3// This should fail as A::foo<0> is not a typename at all. 4struct A 5{ 6 template<int> void foo(int i) 7 { 8 typename A::foo<0>(i1); // { dg-error "" } 9 } 10}; 11