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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to