This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15453] Friend declaration not treated as a declaration in scope.


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-15 03:49 -------
I had forgot to give a little better example (which is the one which works for ICC):
template<typename G, template<typename H> class I>
class J;

template<typename C, template<typename D> class B>
class F {
    template<typename G, template<typename H> class I = B>
    friend
    class J;
    template<typename K, template<typename L> class M = B>
    friend
    class N;
    friend
    class O;

    J<int, B>* j;
    N<int, B>* n;
    O* o;
    };

int main() {
    return 0;
    }

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]