cat > bug.d << CODE
import std.container;
struct A { Array!A ary; }
struct B { SList!B slist; }
struct C { DList!C dlist; }
struct D
{
int id;
int opCmp(const ref D rhs) const { return id - rhs.id; }
RedBlackTree!D rbtree;
}
CODE
----
Neither of those containers can handle forward referenced types, but they should all support it.
Comment #1 by robert.schadek — 2024-12-01T16:23:05Z