[LLVMbugs] [Bug 12818] New: Error recovery can trigger Assertion `StartColNo <= EndColNo && "Invalid range!"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 13 22:21:26 PDT 2012


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

             Bug #: 12818
           Summary: Error recovery can trigger Assertion `StartColNo <=
                    EndColNo && "Invalid range!"'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hfinkel at anl.gov
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8550
  --> http://llvm.org/bugs/attachment.cgi?id=8550
reduced test case (provided by Craig Schroeder)

Running clang trunk on the attached test case (which is whitespace sensitive)
results in:

prog.c:2:12: error: unknown type name 'png_stru'; did you mean 'png_struct'?
clang:
/src/llvm-trunk-writable/tools/clang/lib/Frontend/TextDiagnostic.cpp:1027: void
clang::TextDiagnostic::highlightRange(const clang::CharSourceRange&, unsigned
int, clang::FileID, const SourceColumnMap&, std::string&, const
clang::SourceManager&): Assertion `StartColNo <= EndColNo && "Invalid range!"'
failed.

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