https://issues.dlang.org/show_bug.cgi?id=19196
Issue ID: 19196 Summary: DMD thinks storage size of dynamic array is unknown Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: bus_dlangzi...@semitwist.com struct Foo(T) { import std.traits: hasElaborateDestructor; static if(hasElaborateDestructor!A) {} } struct A { B b; } struct B { // Error: struct `test.A` no size because of forward reference Foo!(A)[] arr; } --