Debian Codegraph @

gcc/testsuite/g++.dg/template/friend11.C

raw
1 /* PR c++/53 */
2 /* { dg-do compile } */
3
4 template <class T>
5 struct A {
6 template <class U> class B;
7
8 // Did not compile with gcc-2.95.2 (linux i686) :-(
9 template <class S> template <class U> friend class A<S>::B;
10 };
11
12 template <class S> template <class U> class A<S>::B {
13 };
14
15 int main(){
16 A<double>::B<double> ab;
17 return 0;
18 }