D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19562 - core.internal.hash.hashOf array of pointers or delegates should be `@safe`
Summary: core.internal.hash.hashOf array of pointers or delegates should be `@safe`
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-09 04:04 UTC by Nathan S.
Modified: 2020-01-31 09:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2019-01-09 04:04:46 UTC
Currently does not work:
----
void main() @nogc nothrow pure @safe
{
    void*[10] a;
    size_t h = hashOf(a[]);
}
----
Comment 1 Nathan S. 2019-01-09 04:12:36 UTC
Pull request: https://github.com/dlang/druntime/pull/2451