[Issue 22024] New: hashOf does not work on enum types whose base type is a SIMD vector

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 14 18:35:00 UTC 2021


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

          Issue ID: 22024
           Summary: hashOf does not work on enum types whose base type is
                    a SIMD vector
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

Does not compile:

---
void main()
{
    import core.simd : float4;
    enum E : float4 { a = float4.init, }
    cast(void) hashOf(E.init);
}
---

--


More information about the Digitalmars-d-bugs mailing list