Re: gcc-2.95 OK, gcc-{3,4}.X not OK

2010-01-01 Thread Andrew Haley
[redir to gcc-help] On 01/01/2010 05:44 AM, Andris Kalnozols wrote: > If the bug was a basic programming error, one would expect a > runtime failure (dereferencing a NULL pointer) no matter which > compiler was used. I would not expect that, and I have no idea whay you would. Undefined behaviou

gcc-2.95 OK, gcc-{3,4}.X not OK

2009-12-31 Thread Andris Kalnozols
I've got a bit of a quandry here and would like the advice of people who are more experienced than I am at C programming and debugging. We've got a legacy application that compiles and runs fine using the following compilers/platforms: HP-UX 11.23 (PA-RISC) ANSI-C and aC++ C.11.23.04 HP-UX 11