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

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


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.


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