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

--- Comment #8 from [email protected] ---
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.

--

Reply via email to