August 27, 2018 [Issue 19196] New: DMD thinks storage size of dynamic array is unknown | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com Reporter: bus_dlangzilla@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; } -- |
Copyright © 1999-2021 by the D Language Foundation