> However, I've also been told that the g++ compiler will initialize all stack 
> objects to zero when compiling for debug (the -g option).  Yet, valgrind 
> still detects the un-init condition.

I think whoever told you that was confusing it with Microsoft Visual Studio. 
The default debug-build configuration for that IDE does initialise all 
variables.

--
John Dallman

-----------------
Siemens Industry Software Limited is a limited company registered in England 
and Wales.
Registered number: 3476850.
Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, 
GU16 8QD.
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to