------- Additional Comments From giovannibajo at libero dot it 2004-10-04 12:37 ------- The implicit return statement is added within cp/decl.c:finish_function:
if (DECL_MAIN_P (current_function_decl)) { /* Make it so that `main' always returns 0 by default. */ #if VMS_TARGET finish_return_stmt (integer_one_node); #else finish_return_stmt (integer_zero_node); #endif } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17544