[LLVMbugs] [Bug 22824] New: clang-cl: i8 integer suffix leads to wrong type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 6 08:56:35 PST 2015
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: unassignedclangbugs at nondot.org
Reporter: cremno at mail.ru
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150306/f16707bf/attachment.html>
More information about the llvm-bugs
mailing list