[LLVMbugs] [Bug 12783] New: [Windows] std::string and std::wstring end up with the same mangling?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 10 05:17:18 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list