This is the mail archive of the gcc-patches@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]

Re: C++: namespace triggers an ICE in 19990621


> I'm a bit nervous about that patch, too.  How serious is the bug it
> fixes?

Without the patch, we get an ICE for code like

namespace N {

    template<class T> class C
    {
        template<class U> friend class C;
    };

}

This was reported twice in July, in

http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00569.html and
http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00126.html

There is no work-around, other than removing the namespace, or the
friend declaration.

Regards,
Martin


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