This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: grokfield miscompiled with -O9
On Jan 9, 2000, Zack Weinberg <zack@wolery.cumb.org> wrote:
> I sometimes wonder if it would be useful to put the C++ semantics of
> falling off the end of main into C as an extension
It might be useful, but it might also get people lazy or just
confused.
Anyway, it's undefined behavior, so we're free to do whatever we want.
> (it's just "as if there was a return 0; as the last statement",
> right?)
Yup.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them