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

           Summary: Better 'expected ';' at end of statement diagnostic
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: quality-of-implementation
          Severity: enhancement
          Priority: P2
         Component: parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Consider this erroneous program:

void foo() {
  int X;
  X = 4
}

We currently emit:

t.c:4:1: error: expected ';' after expression
}
^

This is ok as far as basic stuff goes, but the caret diagnostics would be much
nicer if the caret was pointing to the end of the previous line (right after
the 4) instead of at the }.  This happens very frequently if you forget a ;.


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