aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp36.C
blob: 6c57a97c0ea3e703533fc2e3de86950bf10c74ff (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 X>
struct R
{
};


template <class T>
struct S
{
  template <class U>
  S(R<U> r);
};


void foo()
{
  R<int> r;
  S<char*> s(r);
}