<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 - clang 9 rc2, openmp, regex from Visual Studio: Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!""
   href="https://bugs.llvm.org/show_bug.cgi?id=43175">43175</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 9 rc2, openmp, regex from Visual Studio: Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>9.0
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david.gabor.bodor@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Clang crashes when using openmp with the regex header from the Visual Studio
stdlib.

PS C:\git\crash> C:\PROGRA~1\LLVM_P~1\bin\clang++.exe -fopenmp -O0 -emit-llvm
-save-temps -c CrashWithRegex.cpp
Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!", file
C:\src\llvm_package_900-rc2\llvm\include\llvm/IR/Instructions.h, line 868
Stack dump:
0.      Program arguments: C:\PROGRA~1\LLVM_P~1\bin\clang++.exe -cc1 -triple
x86_64-pc-windows-msvc19.22.27905 -emit-llvm-bc -emit-llvm-uselists
-save-temps=cwd -disable-free -main-file-name CrashWithRegex.cpp
-mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-dwarf-column-info -coverage-notes-file C:\git\crash\CrashWithRegex.gcno
-resource-dir C:\PROGRA~1\LLVM_P~1\lib\clang\9.0.0 -O0 -fdeprecated-macro
-fdebug-compilation-dir C:\git\crash -ferror-limit 19 -fmessage-length 237
-fopenmp -fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.22.27905 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -disable-llvm-passes -faddrsig -o CrashWithRegex.tmp.bc -x
c++-cpp-output CrashWithRegex.ii
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.22.27905\include\regex:566:13:
Generating code for declaration 'std::_Is_word'
 #0 0x00007ff6696715d6 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x1de15d6)
 #1 0x00007ffacdccc31d (C:\Windows\System32\ucrtbase.dll+0x6c31d)
 #2 0x00007ffacdccd321 (C:\Windows\System32\ucrtbase.dll+0x6d321)
 #3 0x00007ffacdcced5e (C:\Windows\System32\ucrtbase.dll+0x6ed5e)
 #4 0x00007ffacdccec55 (C:\Windows\System32\ucrtbase.dll+0x6ec55)
 #5 0x00007ffacdccefe1 (C:\Windows\System32\ucrtbase.dll+0x6efe1)
 #6 0x00007ff6679b9474 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x129474)
 #7 0x00007ff6679b92a1 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x1292a1)
 #8 0x00007ff6679b9219 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x129219)
 #9 0x00007ff669922043 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2092043)
#10 0x00007ff669bf77d3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x23677d3)
#11 0x00007ff669a976a8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22076a8)
#12 0x00007ff669a85af3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21f5af3)
#13 0x00007ff669a7a64d (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21ea64d)
#14 0x00007ff669a847d8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21f47d8)
#15 0x00007ff669c01d85 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2371d85)
#16 0x00007ff669c073e7 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x23773e7)
#17 0x00007ff669bef450 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x235f450)
#18 0x00007ff669b8f276 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22ff276)
#19 0x00007ff669b8c381 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x22fc381)
#20 0x00007ff669b95a22 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2305a22)
#21 0x00007ff669a70d2f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21e0d2f)
#22 0x00007ff669a71774 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x21e1774)
#23 0x00007ff6698ae46f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x201e46f)
#24 0x00007ff6698a675f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x201675f)
#25 0x00007ff66989a9c2 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9c2)
#26 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#27 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#28 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#29 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#30 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#31 0x00007ff66989a9ee (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x200a9ee)
#32 0x00007ff6698998f1 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x20098f1)
#33 0x00007ff66bb2c4f5 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x429c4f5)
#34 0x00007ff66bb29a8b (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x4299a8b)
#35 0x00007ff66ab924d3 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x33024d3)
#36 0x00007ff669e30175 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x25a0175)
#37 0x00007ff669deb51a (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x255b51a)
#38 0x00007ff669e92ab8 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x2602ab8)
#39 0x00007ff66789771f (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x771f)
#40 0x00007ff667894c2d (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x4c2d)
#41 0x00007ff66bb4a608 (C:\PROGRA~1\LLVM_P~1\bin\clang++.exe+0x42ba608)
#42 0x00007ffad0217bd4 (C:\Windows\System32\KERNEL32.DLL+0x17bd4)
#43 0x00007ffad076ce71 (C:\Windows\SYSTEM32\ntdll.dll+0x6ce71)
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (tags/RELEASE_900/rc2)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~1\LLVM_P~1\bin
clang++: note: diagnostic msg: 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.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg:
C:\Users\dragonfi\AppData\Local\Temp\CrashWithRegex-307288.cpp
clang++: note: diagnostic msg:
C:\Users\dragonfi\AppData\Local\Temp\CrashWithRegex-307288.sh
clang++: 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>