http://llvm.org/bugs/show_bug.cgi?id=14413

             Bug #: 14413
           Summary: [-cxx-abi microsoft] anonymous namespaces are mangled
                    incorrectly
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


=== anon.cpp ===
namespace A {
namespace B {
namespace {  // anonymous

void foo();

}
}
}

int main() {
  A::B::foo();
}
================

clang -w -Xclang -cxx-abi -Xclang microsoft anon.cpp
anon-778013.o : error LNK2019: unresolved external symbol "void __cdecl
A::`anonymous namespace'::foo(void)" (?foo@?AB@A@@YAXXZ) referenced in function
_main

-> should be "A::B::`anonymous namespace'..."

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to