[llvm-bugs] [Bug 28250] New: clang-cl does not consider __m128 to be a struct type
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 21 15:19:57 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28250
Bug ID: 28250
Summary: clang-cl does not consider __m128 to be a struct type
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: resistor at mac.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
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];
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160621/3f1275d5/attachment.html>
More information about the llvm-bugs
mailing list