[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#119440: g++: Compiler does not give any errors when a function fails to return required value



On Wed, Nov 14, 2001 at 02:24:16PM +0200, Eray Ozkural (exa) wrote:
> The problem with the above code is that g++ will compile the code as if it is 
> normal, and when you run it, it will just spew out a random result.

It's YOUR FAULT, not g++'s. It has the capability to warn you of
things like this; use a -W option. g++ is just giving you enough rope
to hang yourself.



Reply to: