<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 --- - clang-cl: The unwind destination does not have an exception handling instruction!, again"
   href="https://llvm.org/bugs/show_bug.cgi?id=27163">27163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl: The unwind destination does not have an exception handling instruction!, again
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stephan.bergmann.secondary@googlemail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>david.majnemer@gmail.com, dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16140" name="attach_16140" title="reproducer, gzip'ed">attachment 16140</a> <a href="attachment.cgi?id=16140&action=edit" title="reproducer, gzip'ed">[details]</a></span>
reproducer, gzip'ed

Another one similar to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang-cl: The unwind destination does not have an exception handling instruction!"
   href="show_bug.cgi?id=27056">bug 27056</a> (but with the fix for it in): At least with
recent trunk r264998, running

  clang-cl --target=x86_64-pc-windows-mscv -Xclang -std=gnu++14 -EHa -O2 -c
test.cc

on the attached (non-reduced) test.cc(.gz) fails with

<span class="quote">> The unwind destination does not have an exception handling instruction!
>   invoke void %.pre(i8* %4, i8* %.pre55)
>           to label %try.cont unwind label %catch.dispatch
> CatchSwitchInst not the first non-PHI instruction in the block.
>   %6 = catchswitch within none [label %invoke.cont8] unwind label %ehcleanup
> fatal error: error in backend: Broken function found, compilation aborted!</span ></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>