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

             Bug #: 12595
           Summary: Poor fixit for extra ')'
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


When building:

void test() {
  int x = 4+(5-12));
}

We produce:


t.c:4:19: error: expected ';' at end of declaration
  int x = 4+(5-12));
                  ^
                  ;

This error should look ahead a token to see that there is a ';' coming up, and
suggest deleting the extra ) instead of inserting an extra ; (which would make
the code invalid).

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