http://llvm.org/bugs/show_bug.cgi?id=14971
Bug #: 14971
Summary: Warn on = vs == typos in more contexts
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Clang just failed to catch this bug, but fortunately GCC spotted it:
friend bool operator==(filtered_category_iterator X,
filtered_category_iterator Y) {
return X.Current = Y.Current;
}
Our -Wparentheses catches this in the condition of an if statement, but
apparently not other boolean contexts.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs