[Bug c++/51028] New: [C++11] Alias-Declaration in namespace omits other whole code
kikairoya at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 8 09:40:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51028
Bug #: 51028
Summary: [C++11] Alias-Declaration in namespace omits other
whole code
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kikairoya@gmail.com
testcase:
// test.cc
namespace {
using int_x = int;
}
int main() { }
$ g++ -std=c++11 test.cc
/usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
$ g++ -std=c++11 test.cc -c
(no message)
$ nm test.o
(no message)
More information about the Gcc-bugs
mailing list