http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51028
Kohei Takahashi <flast at flast dot jp> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |flast at flast dot jp --- Comment #2 from Kohei Takahashi <flast at flast dot jp> 2011-11-08 09:46:57 UTC --- GCC does not omit. See followings, $ \g++-devel -std=gnu++11 hoge.cpp -Wall hoge.cpp: In function 'int {anonymous}::main()': hoge.cpp:5:13: warning: no return statement in function returning non-void [-Wreturn-type] /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status