[LLVMbugs] [Bug 13879] New: Diagnostic to check for forgotten boolean operator

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 19 13:38:39 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: eric.huhtala at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list