delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/18/10:14:54

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
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<T>[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!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019