egcs-1.0.1 release: Internal error 9 due to friend declaration

Stefan Eggers seggers@semyam.dinoco.de
Tue Mar 17 07:24:00 GMT 1998


Hi!

Just found out that egcs-1.0.1 release runs into an internal error
while compiling this:

----------------------------------------------------------------------
template<class T>
class A
{
   friend b< A<T> >(A<T> l, A<T> r);
}
----------------------------------------------------------------------

I discovered it by using a similar construct in a class I am writing
right now and could reproduce it with these few lines.

----------------------------------------------------------------------
test.c:4: Internal compiler error 9.
----------------------------------------------------------------------

The function template b<T> doesn't get declared and my guess is this
is triggering the error as it went away as soon as I added a decla-
ration to the class where I first discovered the problem.

Stefan.



More information about the Gcc-bugs mailing list