[Issue 17194] [scope] Fwd reference error with nested struct
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 14 14:30:12 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17194
Elie Morisse <syniurge at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |syniurge at gmail.com
Hardware|x86_64 |All
OS|Windows |All
--- Comment #1 from Elie Morisse <syniurge at gmail.com> ---
It's not specific to nested classes:
struct S {
S2 a;
}
struct S2 {
void foo(scope S s) { }
}
=> Error: struct S no size because of forward reference
Kinda related: issue 17548 was another bogus forward ref error originating from
the same TypeStruct.hasPointers call in TypeFuntion.semantic (but as I
understand it that call isn't the actual problem).
--
More information about the Digitalmars-d-bugs
mailing list