aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/memtemp81.C
blob: 37a3417bfdf0067af7621670d5d10c3a1b60291c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }

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();
}