[LLVMbugs] [Bug 7873] New: clang error points to the wrong place entirely

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 11 15:21:19 PDT 2010


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

           Summary: clang error points to the wrong place entirely
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, jyasskin at google.com


This testcase has a typo where ':' was used in place of ';'.

class Foo {
  virtual ~Foo():
  virtual void ListWidgets();
};

The clang error is Just Wrong:
nlewycky at ducttape:~$ clang++ test.cc -fsyntax-only
test.cc:3:29: error: expected '{'
  virtual void ListWidgets();
                            ^
1 error generated.

No. That's not where the error is. It was on the previous line.

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