Bug 15519 – Circular imports leads to fwd ref error with aliased imports

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-06T08:00:00Z
Last change time
2017-07-02T16:37:52Z
Assigned to
nobody
Creator
bugzilla
See also
https://issues.dlang.org/show_bug.cgi?id=15389

Comments

Comment #0 by bugzilla — 2016-01-06T08:00:51Z
--- y.d import x: NS = ns; // fails //import x; alias x.ns NS; // works extern(C++, ns) { class Y { NS.X v; } } --- x.d import y; extern(C++, ns) //struct ns { class X { y.ns.Y v; } } --- dmd -c y.d
Comment #1 by bugzilla — 2016-01-06T08:11:41Z
Comment #2 by github-bugzilla — 2016-01-07T21:44:54Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/31cd3b5dbeba43cf5809a477ad7079ac21854a86 fix Issue 15519 - Circular imports leads to fwd ref error with aliased imports https://github.com/D-Programming-Language/dmd/commit/61c35f3602646163946b3502951e6d3fde73621f Merge pull request #5333 from WalterBright/fix15519 fix Issue 15519 - Circular imports leads to fwd ref error with aliase…
Comment #3 by github-bugzilla — 2016-03-19T20:21:34Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/31cd3b5dbeba43cf5809a477ad7079ac21854a86 fix Issue 15519 - Circular imports leads to fwd ref error with aliased imports https://github.com/D-Programming-Language/dmd/commit/61c35f3602646163946b3502951e6d3fde73621f Merge pull request #5333 from WalterBright/fix15519
Comment #4 by dlang-bugzilla — 2017-07-02T13:50:05Z
*** Issue 15868 has been marked as a duplicate of this issue. ***
Comment #5 by dlang-bugzilla — 2017-07-02T16:37:52Z
*** Issue 12239 has been marked as a duplicate of this issue. ***