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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [memfriend8.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Martin Sebor 
4
 
5
// PR c++/5369: Member function of class template as friend
6
 
7
template 
8
struct S
9
{
10
  int foo () {
11
    return S::bar ();
12
  }
13
 
14
private:
15
 
16
  template 
17
  friend int S::foo ();
18
 
19
  static int bar () { return 0; }
20
};
21
 
22
int main ()
23
{
24
  S().foo ();
25
}

powered by: WebSVN 2.1.0

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