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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs