This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51028] [C++11] Alias-Declaration in namespace omits other whole code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]