https://issues.dlang.org/show_bug.cgi?id=19877 --- Comment #1 from hsteoh at quickfur.ath.cx --- Here's a much more reduced case: ------ struct S { private int _x; } struct RedBlackTree { size_t toHash() nothrow @safe { return .hashOf(S.init); } } void main() { } ------ --