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/] [friend15.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do compile }
// { dg-do compile }
// Origin: Wolfgang Bangerth 
// Origin: Wolfgang Bangerth 
// PR c++/9453
// PR c++/9453
// Access checking when template friend is defined in class.
// Access checking when template friend is defined in class.
template  class X {
template  class X {
  private:
  private:
    struct Inner;
    struct Inner;
    template 
    template 
    friend typename X::Inner * foo () { return 0; }
    friend typename X::Inner * foo () { return 0; }
};
};
template class X;
template class X;
struct U {
struct U {
    void bar () { foo (); }
    void bar () { foo (); }
};
};
 
 

powered by: WebSVN 2.1.0

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