[LLVMbugs] [Bug 7975] New: chained comparisons lacking warning gcc has
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 23 12:26:51 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7975
Summary: chained comparisons lacking warning gcc has
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: evan at chromium.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
We were just marveling at the gcc warning on the following code:
bool x = 3 < 4 < 5;
test.cc:3: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical
meaning
So I thought to see what clang thinks of it. No warning at all!
(llvm/clang r111814)
--
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