OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [memfriend5.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation
4
// Contributed by Kriang Lerdsuwanakij 
5
 
6
// Member template function of member class template as friend
7
 
8
template  struct A {
9
  template  struct B {
10
    template  void f(V);
11
  };
12
};
13
 
14
class X {
15
  int i;
16
  template  template  template 
17
    friend void A::B::f(V);
18
};
19
 
20
template  template  template 
21
  void A::B::f(V)
22
{
23
  X x;
24
  x.i = 0;
25
}
26
 
27
int main()
28
{
29
  A::B a1;
30
  a1.f(0);
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.