www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20652] New: extern(C++) doesn't seem to mangle the types in

https://issues.dlang.org/show_bug.cgi?id=20652

          Issue ID: 20652
           Summary: extern(C++) doesn't seem to mangle the types in
                    core.simd right
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

c++:
#include <immintrin.h>
void test(const __m128&) {}

d:
import core.simd;
extern(C++) void test(ref const float4);

void main()
{
  float4 f4;
  test(f4);
}


__mm128 doesn't seem to mangle right...

--
Mar 09