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/] [friend12.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Wolfgang Bangerth 
4
 
5
// PR 9030.  Perform access checking to parameter and return type of
6
// function template correctly when the template is friend.
7
 
8
template  class Outer {
9
  private:
10
    struct Inner {};
11
 
12
    template 
13
    friend typename Outer::Inner foo ();
14
};
15
 
16
template 
17
typename Outer::Inner
18
foo () {
19
  return typename Outer::Inner();
20
}
21
 
22
void f() {
23
  foo();
24
}

powered by: WebSVN 2.1.0

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