blob: 1584f88b8020de88347c90260f44a6814a26117e [file] [log] [blame]
// Build don't link:
template <int i> class a
{
public :
int k;
template <int j> int f() const { return this->f<j-1>(); }
int g() const { return f<i>(); };
};
template <>
template <>
int a<2>::f<0>() const {
return 0;
}
int main()
{
a<2> x;
return x.g();
}