<html>
    <head>
      <base href="http://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 --- - Win8.1 SDK trips the backend into panic"
   href="http://llvm.org/bugs/show_bug.cgi?id=22847">22847</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Win8.1 SDK trips the backend into panic
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.6
          </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>ashodnakashian@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following sequence in winnt.h (of Win8.1 SDK) is breaking the backend.
This happens while compiling 64-bit OpenCV on VS2013 running on Win7 64-bit.
LLVM toolchain is from SVN r231084 (official build). The full error follows.

2954: VOID
2955: _ReadWriteBarrier (
2956:     VOID
2957:     );
2958: 
2959: #pragma intrinsic(_ReadWriteBarrier)

-----
  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(2955,1) :  note:
'_ReadWriteBarrier' has been explicitly marked deprecated here
  _ReadWriteBarrier (
  ^
  Cannot invoke an intrinsinc other than donothing or patchpoint
    invoke void @llvm.eh.endcatch()
            to label %invoke.cont10 unwind label %terminate.lpad, !dbg !1840
  Cannot invoke an intrinsinc other than donothing or patchpoint
    invoke void @llvm.eh.endcatch()
            to label %invoke.cont10 unwind label %terminate.lpad, !dbg !1840
CL : fatal error : error in backend: Broken function found, compilation
aborted!
clang-cl.exe : error : clang frontend command failed with exit code 70 (use -v
to see invocation)
  clang version 3.7.0 (trunk)
  Target: x86_64-pc-windows-msvc
  Thread model: posix
  clang-cl.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-cl.exe: note: diagnostic msg: Error generating preprocessed source(s).</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>