http://llvm.org/bugs/show_bug.cgi?id=12783
Bug #: 12783
Summary: [Windows] std::string and std::wstring end up with the
same mangling?
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
Repro:
=====================
#include <string>
void f(std::string &a) { a = "42"; }
void f(std::wstring &a) { a = L"42"; }
=====================
Crashes on:
Assertion failed: OldFn->isDeclaration() && "Shouldn't replace non-declaration"
[as of r155981]
Looks like the problem is that bot functions get the same mangled name now
[which is wrong]. If I rename the second 'f' to 'g' the assertion doesn't
happen.
--
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