This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-1.0.1 release: Internal error 9 due to friend declaration
- To: egcs-bugs at cygnus dot com
- Subject: egcs-1.0.1 release: Internal error 9 due to friend declaration
- From: Stefan Eggers <seggers at semyam dot dinoco dot de>
- Date: Tue, 17 Mar 1998 13:16:27 +0100
- cc: seggers at semyam dot dinoco dot de
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.