[LLVMbugs] [Bug 6163] New: Warn when comparing two arrays
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jan 27 16:00:23 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6163
Summary: Warn when comparing two arrays
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
Clang should warn about code that compares two arrays directly:
int array1[2];
int array2[2];
int foo() {
return array1 == array2;
}
because we always know what the answer will be.
--
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