<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang-cl crash when using /E on translation unit with error"
   href="http://llvm.org/bugs/show_bug.cgi?id=20336">20336</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl crash when using /E on translation unit with error
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I added "/E" to a failing compilation in chromium, and got this stack:

D:\src\chrome\src\out\Release>ninja -t msvc -e environment.x86 --
"..\..\../../llvm-ninja/bin/clang-cl" -m32 /nologo /
showIncludes /FC
@obj\third_party\WebKit\Source\core\gen\blink\core\webcore_generated.SVGElementFactory.obj.rsp
/c gen
\blink\core\SVGElementFactory.cpp
/Foobj\third_party\WebKit\Source\core\gen\blink\core\webcore_generated.SVGElementFac
tory.obj /Fdobj\third_party\WebKit\Source\core\webcore_generated.cc.pdb  /E
0x5F0B1938 (0x00000001 0x05523FF8 0x0000001A 0x05FEF778), _write() + 0x148
bytes(s)
0x01BB2B44 (0x05523FF8 0x0000001A 0x00000000 0x0000001A),
llvm::raw_fd_ostream::write_impl() + 0x84 bytes(s), d:\src\l
lvm\lib\support\raw_ostream.cpp, line 524 + 0x17 byte(s)
0x01BB2965 (0x052CE898 0x05FEF7A0 0x01BB2F49 0x00000000),
llvm::raw_ostream::flush_nonempty() + 0x85 bytes(s), d:\src\
llvm\lib\support\raw_ostream.cpp, line 272 + 0x1A byte(s)
0x00A5A814 (0x00000000 0x052CE898 0x05FEF7A8 0x044BD79D),
llvm::raw_ostream::flush() + 0x24 bytes(s), d:\src\llvm\incl
ude\llvm\support\raw_ostream.h, line 137
0x01BB2F49 (0x05FEF7F4 0x5EFDEDF3 0x3FCF3DDE 0x00000000),
llvm::raw_fd_ostream::~raw_fd_ostream() + 0x29 bytes(s), d:\
src\llvm\lib\support\raw_ostream.cpp, line 490
0x044BD79D (0x3FCF3DDE 0x00000000 0x00000000 0x7EFDE000),
`llvm::outs'::`2'::`dynamic atexit destructor for 'S''() + 0
xD bytes(s)
0x5EFDEDF3 (0x00000000 0x00000000 0x00000000 0x05FEF850), _initterm_e() + 0x223
bytes(s)
0x5EFDEEA0 (0x00000000 0x30D2872F 0x00000000 0x00000000), exit() + 0x10
bytes(s)
0x037E4AC6 (0x05FEF864 0x7622338A 0x7EFDE000 0x05FEF8A4), __tmainCRTStartup() +
0x1B6 bytes(s), f:\dd\vctools\crt\crtw
32\dllstuff\crtexe.c, line 662
0x037E4BED (0x7EFDE000 0x05FEF8A4 0x773D9F72 0x7EFDE000), mainCRTStartup() +
0xD bytes(s), f:\dd\vctools\crt\crtw32\dl
lstuff\crtexe.c, line 466
0x7622338A (0x7EFDE000 0x78552FD1 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0x12 bytes(s)
0x773D9F72 (0x037E4BE0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x63 bytes(s)
0x773D9F45 (0x037E4BE0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x36 bytes(s)
clang-cl.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (trunk)
Target: i386-pc-windows-msvc
Thread model: posix
clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrac
e, preprocessed source, and associated run script.
clang-cl.exe: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl.exe: note: diagnostic msg: d:\src\tmp\SVGElementFactory-ff9f2c.cpp
clang-cl.exe: note: diagnostic msg: d:\src\tmp\SVGElementFactory-ff9f2c.sh
clang-cl.exe: note: diagnostic msg:

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>