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]

Bug in g++ compiling template class definition


Hi,
 
When compiling some code, I got the following error message:
 
hashtbl.cc: In method `void cTablaHash<cElemento,cClave,iTam>::Insertar(cClave, cElemento *)':
hashtbl.cc:30: Internal compiler error.
hashtbl.cc:30: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [hashtbl.o] Error 1
 
So, here I am. I have Linux Debian's last distribution of kernel and g++ compiler (I have FTPed it recently, and after getting the error, I've checked for updates).
 
I attach all files involved in the compiling, so you can try to reproduce the error for yourself. It might have some syntax errors, since I haven't checked it farther, so the cause for the error may be this, but anyway, the 'Internal compiler error' shouldn´t happen, so I send it anyway. If that helps you understanding the code, 'list.h' is a generic single-linked list, and hashtbl.* is a generic hash table that uses an array of these generic lists.
 
The compile command was just 'g++ -c hashtbl.cc'.
 
Since I don't know what hardware information (or any other kind) you could need, please feel free to 'bug' me ;-) asking for information.
 
Don't be hurried to answer, I will try to work around the bug. I know that this is EXACTLY what you were going to do, but anyway... ;-)
 
See you
 
Santiago
 
 

List.h

Hashtbl.h

Hashtbl.cc


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