<html>
    <head>
      <base href="https://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 --- - msvc exceptions crash clang.exe"
   href="https://llvm.org/bugs/show_bug.cgi?id=26298">26298</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>msvc exceptions crash clang.exe
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alex@lanin.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I compiled clang in visual studio 2013 myself (from git), however even when
running directly from visual studio it won't resolve function names. Same
behavior with Debug and RelWithDebInfo. If you could tell me how to do that I
could possibly provide more info.

Anyway I followed the how-to-submit-bugs guide and used multidelta (wow!!! I'm
in love). It reduced the file in question to:

template <class _E> void *__GetExceptionInfo(_E);


This line alone crashes clang.exe. It is in C:\Program Files (x86)\Microsoft
Visual Studio 12.0\VC\include\exception

I know exceptions are not fully supported - but this is a rather severe
limitation if I cannot include the file at all. Also some other bug report
comments suggest that it should actually work by now:
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - building boost on windows"
   href="show_bug.cgi?id=21450">https://llvm.org/bugs/show_bug.cgi?id=21450</a>
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Clang For Windows With MSVC 2013 <thread> won't compile"
   href="show_bug.cgi?id=22675">https://llvm.org/bugs/show_bug.cgi?id=22675</a>

command: clang -v -target i686-pc-windows-msvc -O0 crash.cpp
version: from git so I'm not sure whether it's "258628". The full message
reads: Improving documentation for the isMoveAssignmentOperator AST matcher.
Patch by Jonathan Coe.
git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@258628">https://llvm.org/svn/llvm-project/cfe/trunk@258628</a>
91177308-0d34-0410-b5e6-96231b3b80d8

output:
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
 "C:\\Git\\build\\RelWithDebInfo\\bin\\clang.exe" -cc1 -triple
i686-pc-windows-msvc18.0.0 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -disable-llvm-verifier
-main-file-name crash.cpp -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
pentium4 -v -dwarf-column-info -debugger-tuning=gdb -resource-dir
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0" -internal-isystem
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\include" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\winrt" -O0 -fdeprecated-macro -fdebug-compilation-dir
"Z:\\" -ferror-limit 19 -fmessage-length 0 -fms-extensions -fms-compatibility
-fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics
-fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -o
"C:\\Programme\\di_tools_cygwin_3\\tmp\\crash-292c80.o" -x c++ crash.cpp
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
i686-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
 C:\Git\build\RelWithDebInfo\bin\..\lib\clang\3.9.0\include
 C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
 C:\Program Files (x86)\Windows Kits\8.1\include\shared
 C:\Program Files (x86)\Windows Kits\8.1\include\um
 C:\Program Files (x86)\Windows Kits\8.1\include\winrt
End of search list.
#0 0x02849c09 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1479c09)
#1 0x029a1248 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d1248)
#2 0x029a15ba (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d15ba)
#3 0x029a0209 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d0209)
#4 0x029a0101 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d0101)
#5 0x029a2373 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x15d2373)
#6 0x02848361 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1478361)
#7 0x028f1348 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1521348)
#8 0x026ba5b7 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea5b7)
#9 0x026ba478 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea478)
#10 0x026cb24f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12fb24f)
#11 0x026cb9b2 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12fb9b2)
#12 0x026c9fcd (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12f9fcd)
#13 0x026ba230 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ea230)
#14 0x026ac0a3 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12dc0a3)
#15 0x026adc1d (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12ddc1d)
#16 0x026a91fc (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x12d91fc)
#17 0x0228e34f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xebe34f)
#18 0x02f092d9 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1b392d9)
#19 0x0228e25f (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xebe25f)
#20 0x0226ffeb (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xe9ffeb)
#21 0x022df7f3 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0xf0f7f3)
#22 0x0143c738 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6c738)
#23 0x01437e47 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x67e47)
#24 0x0143a4d4 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x6a4d4)
#25 0x02e5c674 (C:\Git\build\RelWithDebInfo\bin\clang.exe+0x1a8c674)
#26 0x74d4338a BaseThreadInitThunk (C:\Windows\syswow64\kernel32.dll+0x1338a)
#27 0x76fa97f2 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397f2)
#28 0x76fa97c5 RtlInitializeExceptionChain
(C:\Windows\SysWOW64\ntdll.dll+0x397c5)
clang.exe: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
clang.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 backtrace, preprocessed source, and
associated run script.
clang.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.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-926698.cpp
clang.exe: note: diagnostic msg:
C:\Programme\di_tools_cygwin_3\tmp\crash-926698.sh
clang.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>