http://llvm.org/bugs/show_bug.cgi?id=13879
Bug #: 13879
Summary: Diagnostic to check for forgotten boolean operator
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
the current error message for the code:
int a = 1;
int b = 2;
if ( (a == 1)
(b == 2) ) {
}
is
"error: called object type 'int' is not a function or function pointer"
Could there be code added to detect that the user might be missing a boolean
operator? especially in the case where the derived expression is of the form:
if ( (boolean) (boolean) ) ...
--
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