[LLVMbugs] [Bug 14413] New: [-cxx-abi microsoft] anonymous namespaces are mangled incorrectly
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 22 05:22:44 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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 at 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.
More information about the llvm-bugs
mailing list