From: turnerjh AT ctrvax DOT vanderbilt DOT edu (Chip Turner) Newsgroups: comp.os.msdos.djgpp Subject: GCC/GPP Internal Error/Abort! - Clsmtrx.zip (0/1) Date: Wed, 15 Jan 1997 05:30:10 GMT Organization: Vanderbilt University Lines: 18 Message-ID: <32dc6a09.856398@news.vanderbilt.edu> Reply-To: turnerjh AT ctrvax DOT vanderbilt DOT edu NNTP-Posting-Host: 129.59.9.155 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I've come across a problem using DJGPP when compiling a C++ program. I don't have a way to test the error on gcc under Unix, but I suspect the problem is platform specific. Upon compiling the attached program, gcc will abort with an internal error if the following line is uncommented (first function, matrix.cc): columns = new clsVector[n]; I'm trying to allocate an n-element array of the template class clsVector based upon the class T. (I'm still learning C++ so if there is a problem with my syntax or something please correct me). A similar line in another function also causes the same problem. The compiler aborts with the internal error on the closing brace of the calling function. Attached is a zip file with the relevant source files. Thanks!