[Issue 14666] [REG2.061] Bogus forward reference error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 31 00:05:44 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=14666

--- Comment #8 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/711944c56bf50a7e7323cd34008311345e53f57c
Add deferred semantic2 mechanism, and run semantic2 for all imported modules

When a module is only imported from function local scopes, it couldn't get a
change to run semantic2 analysis.
It was "fix" for the issue 14666 case, but the deferred instance size
finalization collides with that.

Now, function local imports can cause module level mutual forward references.
Their resolutions can be deferred until the global level analysis loop in
`mars.d` at maximum, and all function local imports will work as same as module
level ones.

--


More information about the Digitalmars-d-bugs mailing list