[LLVMbugs] [Bug 16871] New: [-cxx-abi microsoft] INT_MIN is mangled like -INT_MIN

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 13 03:24:16 PDT 2013


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

            Bug ID: 16871
           Summary: [-cxx-abi microsoft] INT_MIN is mangled like -INT_MIN
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
template <unsigned int I> void foo() { }
void bar() { foo <-2147483648> (); }

We mangle it like:
??$foo@$0?IAAAAAAA@@@YAXXZ

We should mangle it like:
??$foo@$0IAAAAAAA@@@YAXXZ

Hilariously, our mangling demangles to:
void __cdecl foo<--2147483648>(void)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130813/43b92dd4/attachment.html>


More information about the llvm-bugs mailing list