aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp35.C
blob: 7603d947b88c3ed053dbd1b7530c6b54805a1d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link:
// 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);
}