Test case:
-------------------------------------
@safe auto bug6357(int[int] x) {
auto k = x.keys; // error: not @safe
auto v = x.values; // error: not @safe
auto bk = x.byKey; // error: not @safe
auto bv = x.byValue; // error: not @safe
auto g = x.get(0, 1); // error: not @safe
auto l = x.length; // error: not @safe
foreach (va; x) {} // error: not @safe
foreach (ke, va; x) {} // error: not @safe
x.rehash; // error: not @safe (as it should be?)
x[0] = 4; // ok
auto i = x[0]; // ok
auto p = 0 in x; // ok
x.remove(0); // ok
}
-------------------------------------
They are not 'pure' and 'nothrow' as well
Comment #1 by kennytm — 2011-08-05T12:43:37Z
*** Issue 6440 has been marked as a duplicate of this issue. ***
Comment #2 by k.hara.pg — 2011-09-20T12:54:04Z
*** Issue 6702 has been marked as a duplicate of this issue. ***
Comment #3 by bearophile_hugs — 2011-09-20T13:58:30Z
The same as bug 5555 ?
Comment #4 by dmitry.olsh — 2011-09-26T07:55:45Z
*** Issue 6731 has been marked as a duplicate of this issue. ***
Comment #5 by lt.infiltrator — 2012-12-18T17:14:03Z
Personally, I would mark this a duplicate of #5555.
Comment #6 by lt.infiltrator — 2014-03-18T19:57:51Z
*** This issue has been marked as a duplicate of issue 5555 ***