[Bug regression/24956] Optimizer and uninitialised variables.

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



------- Comment #4 from falk at debian dot org  2005-11-20 14:35 -------
I already explained this. Using an uninitialized variable invokes undefined 
behavior. This means that producing random junk, executing random if
statements,
executing random if statements 17 times, formatting your hard disk, and making
demons fly out of your nose are all perfectly valid results. The concept of
"undefined behavior" should be explained in any C book.


-- 

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