[LLVMbugs] [Bug 11609] New: missing warning for ambiguous else

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 18 09:32:15 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11609

             Bug #: 11609
           Summary: missing warning for ambiguous else
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


gcc will warn on

void g(int);
void f(int a, int b) {
        if (a)
                if (b)
                        g(1);
                else
                        g(2);
        g(3);
}

but clang doesn't.

-- 
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