summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp40.C
blob: 70506f000ed14d79476319221132cf4c36d467db (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 R
{
  template <class U>
  void g(U u) {}
};

template <class T>
struct S
{
  template <class U>
  void f(U u) { R<T> r; r.g(u); }
};

void foo()
{
  S<int> si;
  si.f("abc");
}