This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: G++/GCC not detetcing stupid errors in code.
- From: "Tom Browder" <tom dot browder at gmail dot com>
- To: "Laurent Dufrechou" <laurent dot dufrechou at free dot fr>
- Cc: "Sven Eschenberg" <eschenb at cs dot uni-frankfurt dot de>, "Laurent Dufréchou" <laurent dot dufrechou at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 22 May 2008 06:00:25 -0500
- Subject: Re: G++/GCC not detetcing stupid errors in code.
- References: <48352be5.0c58560a.66c6.16bf@mx.google.com> <4835353E.4000800@cs.uni-frankfurt.de> <-457754682823264016@unknownmsgid>
On Thu, May 22, 2008 at 4:00 AM, Laurent Dufrechou
<laurent.dufrechou@free.fr> wrote:
> Arf no... Here is my compile option :)
>
> g++ -march=nocona -Wall -Wfloat-equal -Wshadow -Wpointer-arith -Wcast-align
> -Wcast-qual -Wconversion -Wextra -Wreorder -Wold-style-cast -Winit-self
The failure to warn about the downcast may be a known problem. I had
a problem the other way on a later version of gcc, and the gcc-dev
list has some threads about such.
I suggest checking bugzilla and also check at least gcc version 4.3.
-Tom