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

Or Tal ORTAL@trivnet.com
Sat Sep 16 09:33:00 GMT 2000


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)



More information about the Gcc-bugs mailing list