<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 does not consider __m128 to be a struct type"
   href="https://llvm.org/bugs/show_bug.cgi?id=28250">28250</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl does not consider __m128 to be a struct type
          </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>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>resistor@mac.com
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>MSVC treats __m128 as a struct type, and depends on that in DirectXMath.h. 
clang-cl doesn't, which breaks DirectX apps.

For example:

1>C:\Program Files (x86)\Windows
Kits\10\Include\10.0.10586.0\um/DirectXMath.h(372,29): error : overloaded
'operator/=' must have at least one parameter of class or enumeration type
1>  XMVECTOR&   XM_CALLCONV     operator/= (XMVECTOR& V1, FXMVECTOR V2);


1>C:\Program Files (x86)\Windows
Kits\10\Include\10.0.10586.0\um/DirectXMathVector.inl(412,13): error : member
reference base type 'FXMVECTOR' (aka 'const __m128') is not a structure or
union
1>      return V.m128_f32[i];</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>