[Bug regression/24956] Optimizer and uninitialised variables.

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 20 13:33:00 GMT 2005



------- Comment #1 from falk at debian dot org  2005-11-20 13:33 -------
There is no "correct" output when you use a variable uninitialized. It's 
undefined behavior. Printing any number, or crashing, would be completely
valid behaviors as far as gcc is concerned.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24956



More information about the Gcc-bugs mailing list