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

            Bug ID: 20229
           Summary: crash diagnostics don't work on Windows
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Consider:

$ cat t.cpp
int main() {
#pragma clang __debug assert
}

$ clang -c t.cpp
This is an assertion!
UNREACHABLE executed at ..\tools\clang\lib\Lex\Pragma.cpp:871!
clang.exe: error: clang frontend command failed with exit code 3 (use -v to see
invocation)

'abort' gives exit code 3 on Windows, making this code fail:
    // If result status is < 0, then the driver command signalled an error.
    // If result status is 70, then the driver command reported a fatal error.
    // In these cases, generate additional diagnostic information if possible.
    if (CommandRes < 0 || CommandRes == 70) {
      TheDriver.generateCompilationDiagnostics(*C, FailingCommand);
      break;
    }

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