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

             Bug #: 12030
           Summary: -Wparenthesis doesn't detect "ambiguous else" bugs
                    like gcc does
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


-Wparenthesis doesn't detect "ambiguous else" bugs like gcc does

From the GCC man page:

{
  if (a)
    if (b)
      foo();
  else
    bar();
}

From GCC (but not clang):

test.c:3: warning: suggest explicit braces to avoid ambiguous ‘else’

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

Reply via email to