summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend48.C
blob: 1e236785089b0f0b93a10e051b5e88f61db0324f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
class C {
  template <class U>
  friend class ::C;
};

namespace N 
{
template <class T>
class D {
  template <class U>
  friend class N::D;
};
}