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: unassig...@gcc.gnu.org
        ReportedBy: kikair...@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)

Reply via email to