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

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++/8099
// PR c++/8099
// Partial specialization as friend class
// Partial specialization as friend class
template  struct X;
template  struct X;
template         struct X<1,T>;
template         struct X<1,T>;
template  class Y {
template  class Y {
    static int i;
    static int i;
    template  friend struct X;
    template  friend struct X;
    friend struct X<1,P>;
    friend struct X<1,P>;
};
};
template  struct X<1,T> {
template  struct X<1,T> {
    X () { Y::i; };     // access private field
    X () { Y::i; };     // access private field
};
};
 
 

powered by: WebSVN 2.1.0

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