cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/11/09:15:39

From: Jerzy Witkowski <Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Bugs in 2.8.0?
Date: 11 Mar 1998 15:00:13 +0100
Organization: University of Wroclaw
Lines: 31
Sender: jwi AT swiatowit
Message-ID: <x64t15pbte.fsf@ii.uni.wroc.pl>
NNTP-Posting-Host: swiatowit.ii.uni.wroc.pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

When recompiling my current C++ programs with new 2.8.0 gpp I
found two differences, probably bugs.

First (minor one): when including <vector.h> with -Wall option,
compiler warns about symbol NULL defined twice: in string.h and
libio.h files.

Second, rather serious: exceptions cannot be caught.  The
following program:

#include <iostream.h>
int main (void) {
  try { throw (int)5; }
  catch (int) { cout << "catch" << endl; }
  return 0;
}

produces output "catch" with 2.7.2.1 and output "Abort!"
(incorrect, I think) with new 2.8.0 version. 

Is this something specific to DJGPP or to gcc 2.8.0 in general?

TIA,

-- 
Jerzy Witkowski     <Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl>          o       o

University of Wroclaw, Institute of Computer Science         /| |   |/|
Przesmyckiego 20, PL-51151 Wroclaw                            |/|   | |
room: 11, phone: 0048 71 3247360                             /| |/^\| |
phone/fax office secretary: 0048 71 3251271                <__|

- Raw text -


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