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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend15.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: Wolfgang Bangerth 
4
 
5
// PR c++/9453
6
// Access checking when template friend is defined in class.
7
 
8
template  class X {
9
  private:
10
    struct Inner;
11
 
12
    template 
13
    friend typename X::Inner * foo () { return 0; }
14
};
15
template class X;
16
 
17
struct U {
18
    void bar () { foo (); }
19
};

powered by: WebSVN 2.1.0

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