<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Compiler crash when compiling seh0015.c of github microsoft compiler-tests"
   href="https://bugs.llvm.org/show_bug.cgi?id=50854">50854</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler crash when compiling seh0015.c of github microsoft compiler-tests
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tao.pan@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ /c/work/llvm/llvm-project-4/build/Release/bin/clang-cl.exe seh0015.c
-fuse-ld=lld
seh0015.c(36,48): warning: format specifies type 'int' but the argument has
type 'LONG' (aka 'long') [-Wformat]
    printf("TEST 15 FAILED. Counter = %d\n\r", Counter);
                                      ~~       ^~~~~~~
                                      %ld
seh0015.c(24,7): warning: jump out of __finally block has undefined behavior
[-Wjump-seh-finally]
      goto t10;
      ^
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
C:\\work\\llvm\\llvm-project-4\\build\\Release\\bin\\clang-cl.exe -cc1 -triple
x86_64-pc-windows-msvc19.29.30037 -emit-obj -mrelax-all
-mincremental-linker-compatible --mrelax-relocations -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name seh0015.c
-mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing
-fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -mllvm -x86-asm-syntax=intel -tune-cpu generic -D_MT
-flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames
-stack-protector 2 -fms-volatile -fdiagnostics-format msvc
-fcoverage-compilation-dir=D:\\llvm\\compiler-tests\\seh-clang-cl -resource-dir
C:\\work\\llvm\\llvm-project-4\\build\\Release\\lib\\clang\\13.0.0
-internal-isystem
C:\\work\\llvm\\llvm-project-4\\build\\Release\\lib\\clang\\13.0.0\\include
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30037\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30037\\atlmfc\\include"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.19041.0\\ucrt" -internal-isystem "C:\\Program Files
(x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\shared" -internal-isystem
"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\um"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.19041.0\\winrt"
-fdebug-compilation-dir=D:\\llvm\\compiler-tests\\seh-clang-cl -ferror-limit 19
-fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.29.30037 -fdelayed-template-parsing -faddrsig -o
C:\\Users\\taopan\\AppData\\Local\\Temp\\seh0015-243f07.obj -x c seh0015.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'seh0015.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@"?fin$1@0@main@@"'
 #0 0x00007ff6efe55652
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x505652)
 #1 0x00007ff6f100424c
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x16b424c)
 #2 0x00007ff6f10033fe
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x16b33fe)
 #3 0x00007ff6f0f4b61a
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x15fb61a)
 #4 0x00007ff6f0f51fce
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1601fce)
 #5 0x00007ff6ef9f1c54
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xa1c54)
 #6 0x00007ff6efe05194
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x4b5194)
 #7 0x00007ff6f0087128
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x737128)
 #8 0x00007ff6f0087373
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x737373)
 #9 0x00007ff6f00875b7
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x7375b7)
#10 0x00007ff6f0086e30
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x736e30)
#11 0x00007ff6f078d161
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe3d161)
#12 0x00007ff6f078d932
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0xe3d932)
#13 0x00007ff6f2564c34
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2c14c34)
#14 0x00007ff6f171c194
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1dcc194)
#15 0x00007ff6f0cb1797
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1361797)
#16 0x00007ff6f2563bf8
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2c13bf8)
#17 0x00007ff6f0cb1212
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x1361212)
#18 0x00007ff6f0c7bbcf
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x132bbcf)
#19 0x00007ff6f0d1458c
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x13c458c)
#20 0x00007ff6ef9ae3f4
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x5e3f4)
#21 0x00007ff6ef9a94a7
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x594a7)
#22 0x00007ff6ef9aac30
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x5ac30)
#23 0x00007ff6f22d2c10
(C:\work\llvm\llvm-project-4\build\Release\bin\clang-cl.exe+0x2982c10)
#24 0x00007fff29c87034 (C:\Windows\System32\KERNEL32.DLL+0x17034)
#25 0x00007fff2b0e2651 (C:\Windows\SYSTEM32\ntdll.dll+0x52651)
clang-cl: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
30f591c3869f3bbe6eca1249dcef1b8337312de6)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\work\llvm\llvm-project-4\build\Release\bin
clang-cl: 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: note: diagnostic msg:
C:\Users\taopan\AppData\Local\Temp\seh0015-a693ce.c
clang-cl: note: diagnostic msg:
C:\Users\taopan\AppData\Local\Temp\seh0015-a693ce.sh
clang-cl: 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>