[cfe-dev] Diagnostics are unconditionally suppressed after fatal error

Chris Lattner clattner at apple.com
Fri Apr 16 11:40:50 PDT 2010

On Apr 15, 2010, at 10:46 AM, Enea Zaffanella wrote:

> We thought that it was not possible to map a fatal diagnostic to error.
> Actually, we tried and we got the following assertion failure:
> [Thread 1]
> /llvm/tools/clang/include/clang/Basic/Diagnostic.h:333: void clang::Diagnostic::setDiagnosticMapping(clang::diag::kind, clang::diag::Mapping): Assertion failed: (isBuiltinWarningOrExtension(Diag) || Map == diag::MAP_FATAL) && "Cannot map errors!"
> Aborted
> Are there other ways to map a fatal to error?

This was an over-cautious assert, fixed in r101516.



More information about the cfe-dev mailing list