Bug in g++ compiling template class definition
Santiago Burbano Baselga
santib@mtservicios.com
Mon Nov 23 21:05:00 GMT 1998
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hashtbl.cc
Type: text/x-c++
Size: 1163 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981123/c03a0716/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hashtbl.h
Type: text/x-c++
Size: 714 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981123/c03a0716/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: List.h
Type: text/x-c++
Size: 931 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981123/c03a0716/attachment-0002.bin>
More information about the Gcc-bugs
mailing list