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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|dmd                         |phobos

--- Comment #2 from Walter Bright <[email protected]> ---
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.

--

Reply via email to