------- Comment #4 from bobby_miesen at yahoo dot com 2007-09-14 06:02 ------- Subject: Re: GCC Compiles C++ program containing value-returning functions that don't return a value
Thank you for clarifying that. I will let Addison-Wesley know of this as well. pinskia at gcc dot gnu dot org wrote: > ------- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-13 23:51 > ------- > That book is wrong when it comes to the standard. > The standard says (6.6.2/2, last sentence): > Flowing off the end of a function is equivalent to a return with no value; > this > results in ___undefined behavior___ in a value returning function. > > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33425