Bug 22024 – hashOf does not work on enum types whose base type is a SIMD vector
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-14T18:35:00Z
Last change time
2021-07-24T17:57:09Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2021-06-14T18:35:00Z
Does not compile:
---
void main()
{
import core.simd : float4;
enum E : float4 { a = float4.init, }
cast(void) hashOf(E.init);
}
---
Comment #1 by dlang-bot — 2021-06-14T18:51:14Z
@n8sh created dlang/druntime pull request #3497 "[stable] hashOf does not work on enum types whose base type is a SIMD vector" fixing this issue:
- Fix Issue 22024 - hashOf does not work on enum types whose base type is a SIMD vector
Also incidentally do not pass vector by ref to toHash
https://github.com/dlang/druntime/pull/3497
Comment #2 by dlang-bot — 2021-06-15T11:26:17Z
dlang/druntime pull request #3497 "[stable] hashOf does not work on enum types whose base type is a SIMD vector" was merged into stable:
- 4aa8c47d8fee3f2389dcb4408412a307d15b0393 by Nathan Sashihara:
Fix Issue 22024 - hashOf does not work on enum types whose base type is a SIMD vector
Also incidentally do not pass vector by ref to toHash
https://github.com/dlang/druntime/pull/3497
Comment #3 by dlang-bot — 2021-07-24T17:57:09Z
dlang/druntime pull request #3515 "merge stable" was merged into master:
- 4aa8c47d8fee3f2389dcb4408412a307d15b0393 by Nathan Sashihara:
Fix Issue 22024 - hashOf does not work on enum types whose base type is a SIMD vector
Also incidentally do not pass vector by ref to toHash
- 324dca6924266be7415c50744d8a4dc74d43d407 by Nathan Sashihara:
Fix Issue 22024 - hashOf does not work on enum types whose base type is a SIMD vector
Also incidentally do not pass vector by ref to toHash
https://github.com/dlang/druntime/pull/3515