summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp35.C
blob: 11cc223ad11b8f423487ee42ed19313c4a0f0ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template <class T>
struct S
{
  S(const S& s) {}

  template <class U>
  S(S<U>& s)
  {
    S<U> s2(s);
  }
};


extern S<int>& si;

void foo()
{
  S<char*> sc(si);
}