Bug report

John Nixon NixonJ@EM.AGR.CA
Fri Jul 7 13:36:00 GMT 2000


[john@otis programs]$ g++ -c test.c
test.c: In method `int matrix<T>::matdim(int, int)':
test.c:37: Internal compiler error.
test.c:37: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
test.c:37: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.


I was in the process of trying to develop C++ code to implement a 2-dimensional array class that allows
dynamic allocation of arrays of arbitrary size, allows the array to be passed to a function using a pointer
while using automatic declaration and destruction of array objects (I had some trouble using dynamic allocation
which may be hard to sort out) .The principle of indexing the array using double indirection is explained
in ( Numerical recipies in C  by William H Press et al.   Cambridge University press page 20).

I am using a computer with Red Hat Linux release 6.0 (Hedwig).
My code attached caused the compiler to generate the message above, hence this email. If you are aware of a way to solve this problem please let me know.
Thanks
John Nixon



More information about the Gcc-bugs mailing list