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]

Internal compiler error when using friends inside templates inside namespace g++ 2.95.2



The following generates an internal compiler error on line 3

namespace NAM {
    template <class T> class Handle {
        template <class U> friend class Handle;	// <----------- it dies
here.
    };
}

main()
{
}




compiled using  "g++  y.cpp   -o y"

ser:ortal ~/tmp >g++ -v
Reading specs from
/usr/local/pkg/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)


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