delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/08/05:33:11

From: Andrew Bober <abober AT rmorton DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP (actually gcc on many platforms)
Date: Thu, 04 Sep 1997 16:04:38 -0700
Organization: InterAccess Co., Chicago's Full Service Internet Provider
Lines: 41
Message-ID: <340F3E86.89BA2A51@rmorton.com>
NNTP-Posting-Host: 207.208.23.163
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi all,

Below is an example class that when placed in a .CPP/.CC file will not
compile under gcc/g++ on any platform that I have tested.  Tested
platforms include HP, DIGITAL, SCO, and DOS.

The UNIX platforms crash with the error: "Internal Compiler Error"
DJGPPP simply quits with the message: "Abort!"

Does anyone know about a fix or a workaround for this situation?


Thanks for reading,

Andy



////////////////////////////////////////////////////

#include  <string>


class ErrorExample {
private:
   string *StringArray1;
   string *StringArray2;

public:
    ErrorExample()  
    {
        StringArray1 = new string[5];
        StringArray2 = new string[5];
    }
   
   ~ErrorExample()  
    {
       delete StringArray1;
       delete StringArray2;
    }
};

- Raw text -


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