gcc-2.95 OK, gcc-{3,4}.X not OK
Andrew Haley
aph@redhat.com
Fri Jan 1 11:48:00 GMT 2010
[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
behaviour can happen in any way: maybe the program appears to run
correctly, maybe it faults.
> The application compiles cleanly with no warnings using "-Wall".
> Were there any transition issues with the newer gcc compilers of
> which I may not be aware?
No. As you've done the obvious first stage (using -Wall) you now
should run your program under Valgrind, assuming that it is available
on your system.
Andrew.
More information about the Gcc
mailing list