View Single Post

   
  #4 (permalink)  
Old 03-10-2008, 04:53 PM
Ron Natalie
 
Posts: n/a
Default Re: Absent of return in old C++ codes

red floyd wrote:

> Because the program is ill-formed. A good compiler should issue a
> diagnostic.


It's not ill-formed. It's just undefined behavior.
The compiler is not required to figure out if the code
flows off the end at compile time.
Reply With Quote