Message-Id: <199803111727.TAA29908@ieva06.lanet.lv> From: "Andris Pavenis" To: djgpp AT delorie DOT com, Jerzy Witkowski Date: Wed, 11 Mar 1998 19:24:54 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Bugs in 2.8.0? In-reply-to: Precedence: bulk > From: Jerzy Witkowski > 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 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 > 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