[Issue 19877] [dip1000] 'private' makes toHash un- at safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 12 09:31:34 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=19877
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
Component|dmd |phobos
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The cause of this is core.internal.hash.hashOf() is getting its attributes
inferred. Having it access private members of a struct causes it to be inferred
as @system, and @safe RedBlackTree.toHash() is not allowed to call an @system
function.
The problem is in std.container.rbtree, where the call to .toHash() should be
put in an @trusted block.
--
More information about the Digitalmars-d-bugs
mailing list