Re: Compiler auto correct uninitialized variable? (gcc does and VC++ doesn't)
Quote:
Originally Posted by
monarch_dodra
Long story short, the only restraint a compiler really has is to preserve the observed defined behavior. [...]
Or, even shorter: Don't ever rely on any expectations about how unexpected* behavior will behave. :cool:
Admittedly not really a shorter version of your statement, rather some bottom line to the thread.
* Actually rather "undefined" but it simply looks better as above... :)