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

            Bug ID: 22824
           Summary: clang-cl: i8 integer suffix leads to wrong type
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The type of 0i8 is signed char, but it should be char. Weird, right?

int f(char) { return 1; }
int f(signed char) { return 2; }
int main() { return f(0i8); }  // MSVC: 1, clang-cl: 2

-- 
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