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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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