[LLVMbugs] [Bug 8597] New: clang doesn't report implicit 64->32 cast as it should with -Wshorten-64-to-32
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 12 16:09:06 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8597
Summary: clang doesn't report implicit 64->32 cast as it should
with -Wshorten-64-to-32
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tjw at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
In the attached test case, when building for i386, the following line doesn't
produce a warning with clang:
return NSMakePoint(v.x/length, v.y/length);
where length is a double.
llvm-gcc-4.2 does warn on this.
--
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