summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend33.C
blob: 016be7013e699560af7b2d10737ab1285804d3b2 (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
28
// { dg-do link  }
// { dg-options "-g" }

template <class P1>
struct S1
{
  struct SS1
  {
  };
  friend void Foo (const SS1& ss1)
    {
    }
};

template <class P1>
void Foo(const S1<P1>& s1)
{
  typedef typename S1<P1>::SS1 TYPE;
  TYPE t;
  Foo(t);
}

int main ()
{
  S1<double> obj;
  Foo(obj);
}