[Issue 17194] [scope] Fwd reference error with nested struct
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Aug 30 23:33:35 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17194
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
This is a bit of a hopeless circular tangle. 'scope' is ignored if the type has
no pointers. So S is checked for pointers. S.a is of type S2, which then must
be checked for pointers. Checking S2 for pointers means evaluating each member
to see if it is a field, which gets us back to looking at the 'scope'.
Not sure if this is reasonably fixable.
--
More information about the Digitalmars-d-bugs
mailing list