Mail Archives: djgpp/1998/03/11/09:15:39
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 -