[LLVMbugs] [Bug 12595] New: Poor fixit for extra ')'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 19 10:55:58 PDT 2012


             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: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu
    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.

More information about the llvm-bugs mailing list