Mail Archives: djgpp/1998/03/11/12:28:57
> 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 -