<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 --- - LLVM front-end crash when using llvm front end with Visual Studio 2015"
   href="https://llvm.org/bugs/show_bug.cgi?id=26530">26530</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM front-end crash when using llvm front end with Visual Studio 2015
          </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>C++14
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lev@squareup.com
          </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>The llvm front-end is generating the following error when compiling c++ code
with template on windows with Visual Studio 2015:

0x109E0DEE (0x00C7C184 0x05FEA780 0x05FEB0A0 0x05FEB000),
UTCExecuteCompilerInvocation() + 0x522DFE bytes(s)
1>  0x109E3C23 (0x00C7C184 0x05FEB000 0x00000000 0x00000000),
UTCExecuteCompilerInvocation() + 0x525C33 bytes(s)
1>  0x109DF937 (0x00C7C194 0x05FEB0D0 0x01173038 0x05B23998),
UTCExecuteCompilerInvocation() + 0x521947 bytes(s)
1>  0x109E2A84 (0x00C7C368 0x051D3280 0x00C7C4E0 0x00000001),
UTCExecuteCompilerInvocation() + 0x524A94 bytes(s)
1>  0x109E1532 (0x00C7C584 0x05FEA780 0x00001504 0x06CDFA80),
UTCExecuteCompilerInvocation() + 0x523542 bytes(s)
1>  0x109E1AF9 (0x00C7C584 0x05FEA780 0x00000005 0x06084214),
UTCExecuteCompilerInvocation() + 0x523B09 bytes(s)
1>  0x109E3E61 (0x00C7C5B0 0x05FEA780 0x00000000 0x00000000),
UTCExecuteCompilerInvocation() + 0x525E71 bytes(s)
1>  0x109E35F8 (0x011173B8 0x0116F938 0x01122D48 0x044E2578),
UTCExecuteCompilerInvocation() + 0x525608 bytes(s)
1>  0x10928A45 (0x011173B8 0x01129FB0 0x06CCC0E8 0x10ABBAA0),
UTCExecuteCompilerInvocation() + 0x46AA55 bytes(s)
1>  0x108D7BC9 (0x011173B8 0x118100BE 0x01122D48 0x011173B8),
UTCExecuteCompilerInvocation() + 0x419BD9 bytes(s)
1>  0x11810F4E (0x01122D48 0x010C0328 0x010BF840 0x010C0328),
UTCExecuteCompilerInvocation() + 0x1352F5E bytes(s)
1>  0x10AB9A85 (0x01151460 0x00000000 0x00000000 0x010C0328),
UTCExecuteCompilerInvocation() + 0x5FBA95 bytes(s)
1>  0x10A405D1 (0x010C0328 0x010BF840 0x119FED58 0x10A2C38B),
UTCExecuteCompilerInvocation() + 0x5825E1 bytes(s)
1>  0x10A4050F (0x010C0328 0x010C1AA0 0x010DD4B8 0x010BF840),
UTCExecuteCompilerInvocation() + 0x58251F bytes(s)
1>  0x10A7C746 (0x010BF840 0x010A9D78 0x010B7828 0x00C7EEE8),
UTCExecuteCompilerInvocation() + 0x5BE756 bytes(s)
1>  0x104BE936 (0x010BF840 0x010A9D84 0x010A9D78 0x00C7EECC),
UTCExecuteCompilerInvocation() + 0x946 bytes(s)
1>  0x10789399 (0x00C7EEE8 0x00C7F59C 0x0000007E 0x010C0388),
UTCExecuteCompilerInvocation() + 0x2CB3A9 bytes(s)
1>  0x104BDFD3 (0x00C7F59C 0x0000007E 0x010C0388 0x01311BA0), utc_cc1_main() +
0x73 bytes(s)
1>  0x01311988 (0x00C7F594 0x00000080 0x010C03DF 0x00000000)
1>  0x013133D5 (0x00000080 0x01080B60 0x010ACFC8 0x00000000)
1>  0x01B59CF3 (0x7EFDE000 0x00C7FB90 0x77549882 0x7EFDE000)
1>  0x74F0338A (0x7EFDE000 0x7D190654 0x00000000 0x00000000),
BaseThreadInitThunk() + 0x12 bytes(s)
1>  0x77549882 (0x01B59D70 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x63 bytes(s)
1>  0x77549855 (0x01B59D70 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x36 bytes(s)
1>clang.exe : error : clang frontend command failed due to signal (use -v to
see invocation)
1>  clang with Microsoft CodeGen version 3.7.0
1>  Provided as - is without support
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Clang
3.7\bin\x86\x86\c2.dll version 19.0.23413.0
1>  Target: i686-pc-windows-msvc
1>  Thread model: posix
1>  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.
1>  clang.exe: note: diagnostic msg:
1>  ********************






# Crash reproducer for clang with Microsoft CodeGen version 3.7.0 
# Driver args: "-c" "-fdiagnostics-format=msvc" "--target=i686-pc-windows-msvc"
"-I" "Y:\\riker-host" "-I" "Y:\\riker-host\\inc" "-I"
"Y:\\riker-host\\lib\\windows\\inc" "-I" "Y:\\riker-host\\lib\\task\\inc" "-I"
"Y:\\riker-host\\lib\\core\\inc" "-I" "Y:\\riker-host\\lib\\log\\inc" "-I"
"Y:\\riker-host\\lib\\system\\inc" "-I" "C:\\Program Files (x86)\\Microsoft
Visual Studio 14.0\\VC\\Clang 3.7\\include" "-I" "C:\\Program Files
(x86)\\Microsoft Visual Studio 14.0\\VC\\include" "-I" "C:\\Program Files
(x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include" "-I" "C:\\Program
Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt" "-I" "C:\\Program
Files (x86)\\Windows Kits\\8.1\\Include\\um" "-I" "C:\\Program Files
(x86)\\Windows Kits\\8.1\\Include\\shared" "-I" "C:\\Program Files
(x86)\\Windows Kits\\8.1\\Include\\winrt" "-g2" "-gdwarf-2" "-o"
"task.dir\\Debug\\TaskPoolImpl.obj" "-Wall" "-O0" "-fno-strict-aliasing"
"-fomit-frame-pointer" "-fexceptions" "-ffunction-sections" "-fdata-sections"
"-fstack-protector" "-fpic" "-fno-short-enums" "-frtti" "-D" "WIN32" "-D"
"_WINDOWS" "-D" "_DEBUG" "-D" "_DEBUG" "-D" "DEBUG" "-D" "UNICODE" "-D"
"_UNICODE" "-D" "CMAKE_INTDIR=\"Debug\"" "-D" "_UNICODE" "-D" "UNICODE" "-x"
"c++" "-fms-extensions" "-fms-compatibility" "-D" "_DEBUG" "-D" "_MT" "-Xclang"
"--dependent-lib=libcmtd" "-Xclang" "--dependent-lib=oldnames"
"Y:\\riker-host\\lib\\task\\src\\windows\\TaskPoolImpl.cpp"
# Original command:  "C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\Clang 3.7\\bin\\x86\\clang.exe" "-cc1" "-triple"
"i686-pc-windows-msvc19.0.0" "-emit-obj" "-mrelax-all" "-disable-free"
"-disable-llvm-verifier" "-main-file-name" "TaskPoolImpl.cpp"
"-mrelocation-model" "pic" "-pic-level" "1" "-mthread-model" "posix"
"-relaxed-aliasing" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases"
"-target-cpu" "pentium4" "-gdwarf-2" "-dwarf-column-info" "-ffunction-sections"
"-fdata-sections" "-coverage-file"
"Y:\\riker-host\\build\\host-win32\\lib\\task\\task.dir\\Debug\\TaskPoolImpl.obj"
"-resource-dir" "C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\Clang 3.7\\bin\\x86\\..\\lib\\clang\\3.7.0" "-D" "WIN32" "-D"
"_WINDOWS" "-D" "_DEBUG" "-D" "_DEBUG" "-D" "DEBUG" "-D" "UNICODE" "-D"
"_UNICODE" "-D" "CMAKE_INTDIR=\"Debug\"" "-D" "_UNICODE" "-D" "UNICODE" "-D"
"_DEBUG" "-D" "_MT" "-I" "Y:\\riker-host" "-I" "Y:\\riker-host\\inc" "-I"
"Y:\\riker-host\\lib\\windows\\inc" "-I" "Y:\\riker-host\\lib\\task\\inc" "-I"
"Y:\\riker-host\\lib\\core\\inc" "-I" "Y:\\riker-host\\lib\\log\\inc" "-I"
"Y:\\riker-host\\lib\\system\\inc" "-I" "C:\\Program Files (x86)\\Microsoft
Visual Studio 14.0\\VC\\Clang 3.7\\include" "-I" "C:\\Program Files
(x86)\\Microsoft Visual Studio 14.0\\VC\\include" "-I" "C:\\Program Files
(x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include" "-I" "C:\\Program
Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt" "-I" "C:\\Program
Files (x86)\\Windows Kits\\8.1\\Include\\um" "-I" "C:\\Program Files
(x86)\\Windows Kits\\8.1\\Include\\shared" "-I" "C:\\Program Files
(x86)\\Windows Kits\\8.1\\Include\\winrt" "-internal-isystem" "C:\\Program
Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Clang
3.7\\bin\\x86\\..\\lib\\clang\\3.7.0\\include" "-internal-isystem" "C:\\Program
Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Clang 3.7\\include"
"-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\include" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft
Visual Studio 14.0\\VC\\atlmfc\\include" "-internal-isystem" "C:\\Program Files
(x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\ucrt" "-internal-isystem"
"C:\\Program Files (x86)\\Windows Kits\\8.1\\Include\\um" "-internal-isystem"
"C:\\Program Files (x86)\\Windows Kits\\8.1\\Include\\shared"
"-internal-isystem" "C:\\Program Files (x86)\\Windows
Kits\\8.1\\Include\\winrt" "-O0" "-Wall" "-fdeprecated-macro"
"-fdebug-compilation-dir" "Y:\\riker-host\\build\\host-win32\\lib\\task"
"-ferror-limit" "19" "-fmessage-length" "0" "-stack-protector" "1"
"-mstackrealign" "-fms-extensions" "-fms-compatibility"
"-fms-compatibility-version=19" "-std=c++14" "-fdelayed-template-parsing"
"-fobjc-runtime=gnustep" "-fcxx-exceptions" "-fexceptions"
"-fdiagnostics-show-option" "-fdiagnostics-format" "msvc"
"--dependent-lib=libcmtd" "--dependent-lib=oldnames" "-o"
"task.dir\\Debug\\TaskPoolImpl.obj" "-x" "c++"
"Y:\\riker-host\\lib\\task\\src\\windows\\TaskPoolImpl.cpp"
 "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\Clang
3.7\\bin\\x86\\clang.exe" "-cc1" "-triple" "i686-pc-windows-msvc19.0.0"
"-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier"
"-main-file-name" "TaskPoolImpl.cpp" "-mrelocation-model" "pic" "-pic-level"
"1" "-mthread-model" "posix" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-target-cpu" "pentium4" "-gdwarf-2"
"-dwarf-column-info" "-ffunction-sections" "-fdata-sections" "-D" "WIN32" "-D"
"_WINDOWS" "-D" "_DEBUG" "-D" "_DEBUG" "-D" "DEBUG" "-D" "UNICODE" "-D"
"_UNICODE" "-D" "CMAKE_INTDIR=\"Debug\"" "-D" "_UNICODE" "-D" "UNICODE" "-D"
"_DEBUG" "-D" "_MT" "-O0" "-Wall" "-fdeprecated-macro" "-ferror-limit" "19"
"-fmessage-length" "0" "-stack-protector" "1" "-mstackrealign"
"-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19"
"-std=c++14" "-fdelayed-template-parsing" "-fobjc-runtime=gnustep"
"-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option"
"-fdiagnostics-format" "msvc" "--dependent-lib=libcmtd"
"--dependent-lib=oldnames" "-x" "c++" "TaskPoolImpl-2e7eb1.cpp"</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>