template problems

gnalle gnalle@ruc.dk
Tue Mar 23 10:27:00 GMT 1999


I try to compile a file containing  the following code:

template <void f()>
class A{
  void B(A<g> x);
};

I get the following error message (the line numbers are not correct)

g++ -c -o -Wall /home/gnalle/slettes/test2.C
/home/gnalle/slettes/test2.C:3: Internal compiler error 71.
/home/gnalle/slettes/test2.C:3: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
/home/gnalle/slettes/test2.C:3: See
<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

Compilation exited abnormally with code 1 at Tue Mar 23 19:04:50

Hmmm maybe you should let this message include a way to find the version
number. But as far as I can see I am using the newest version directly
from our local debian mirror.

Thank you for a good and free compiler.


More information about the Gcc-bugs mailing list