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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs