Bug 2644 – Unresolved template reference

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-02-03T08:17:00Z
Last change time
2015-02-21T09:11:01Z
Keywords
link-failure, pull
Assigned to
nobody
Creator
2korden

Comments

Comment #0 by 2korden — 2009-02-03T08:17:44Z
//--- module bug.Template; class Template(T) { } //--- module bug.A; import bug.Template; import bug.B; alias Template!(bool) TemplateA; //--- module bug.B; import bug.Template; import bug.A; alias Template!(bool) TemplateB; //--- module bug.main; import bug.A; void main() { auto x = new TemplateA(); } Compilation order: dmd -c bug\A.d dmd -c bug\B.d dmd -c bug\Template.d dmd -c bug\main.d dmd main.obj A.obj B.obj Template.obj Result: Error 42: Symbol Undefined _D3bug8Template15__T8TemplateTbZ8Template7__ClassZ Could be related to issue 2500
Comment #1 by andrej.mitrovich — 2013-01-22T11:28:37Z
> Could be related to issue 2500 Still an issue in 2.061 despite 2500 being marked as fixed for D2, so probably unrelated.
Comment #2 by k.hara.pg — 2015-02-05T05:59:49Z
Comment #3 by github-bugzilla — 2015-02-13T22:03:22Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/046712c1f2f2c634792ac78d47ee99840007a04c fix Issue 2644 - Unresolved template reference https://github.com/D-Programming-Language/dmd/commit/c4387428c034ae83fa2504379c68ed3ac354d58f Merge pull request #4384 from 9rnsr/fix2644 Issue 2644 & 2500 & 10920 - Unresolved template reference
Comment #4 by github-bugzilla — 2015-02-21T09:11:01Z