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

Or Tal
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


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

ser:ortal ~/tmp >g++ -v
Reading specs from
gcc version 2.95.2 19991024 (release)

More information about the Gcc-bugs mailing list