aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memclass15.C
blob: 52f92bf52218ccc562f80d0cb4a5c31dac6b5e4a (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
25
26
27
// Build don't link:

template <class T>
struct S1
{
  template <class U>
  struct S2 {};

  template <class X, class Y, class Z>
  void f(X, Y, Z)
    {
      S2<Z> s2z;
    }

  template <class X, class Z>
  void g(X, Z)
    {
      S2<Z> s2z;
    }
};


void h()
{
  S1<int> si;
  si.g(3, 4);
}