aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp39.C
blob: 146d329de68db7f97f4a77a9d3940afee9f4f56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link:
// GROUPS passed templates membertemplates
template <class T>
struct S
{
  template <class U>
  void f(U u) { g(u); }

  template <class U>
  void g(U u) { f(u); }
};

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