www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22024] New: hashOf does not work on enum types whose base

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 puremagic.com
          Reporter: n8sh.secondary hotmail.com

Does not compile:

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

--
Jun 14 2021