[LLVMbugs] [Bug 15420] New: redundant warning when trying to apply operator== on values of uncomparable types
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 2 07:33:59 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15420
Bug ID: 15420
Summary: redundant warning when trying to apply operator== on
values of uncomparable types
Product: clang
Version: trunk
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: M8R-9yw8a5 at mailinator.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
1. Source code:
struct A { };
int main()
{
A a;
return a == a;
}
2. Actual output (slimmed):
warning: self-comparison always evaluates to true
error: invalid operands to binary expression ('A' and 'A')
3. Expected output:
error: invalid operands to binary expression ('A' and 'A')
(ie., no warning)
--
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/20130302/613fafa6/attachment.html>
More information about the llvm-bugs
mailing list