cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/11/12:28:57

Message-Id: <199803111727.TAA29908@ieva06.lanet.lv>
From: "Andris Pavenis" <pavenis AT laima DOT acad DOT latnet DOT lv>
To: djgpp AT delorie DOT com, Jerzy Witkowski <Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl>
Date: Wed, 11 Mar 1998 19:24:54 +0000
MIME-Version: 1.0
Subject: Re: Bugs in 2.8.0?
In-reply-to: <x64t15pbte.fsf@ii.uni.wroc.pl>

> From:          Jerzy Witkowski <Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl>
> Subject:       Bugs in 2.8.0?

> 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.

It is so also for me. .

> 
> 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?
> 

Looks that this is DJGPP specific. I tested this problem with 
gcc-2.8.0 and pgcc-2.90.23 (egcs-1.0.1) under Windows-95.

There is NO SUCH PROBLEM under LINUX with gcc-2.8.1 
and with pgcc-2.90.23 (egcs-1.0.1).This small example works Ok
with both compilers I tested under Linux ( 2.8.1 and pgcc)
I don't have 2.8.0 under Linux and perhaps will never have as I moved 
immediatelly from 2.7.2.3 to 2.8.1).

Andris 

- Raw text -


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