Summary: Unresolved template reference
           Product: D
           Version: 2.021
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

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

Error 42: Symbol Undefined _D3bug8Template15__T8TemplateTbZ8Template7__ClassZ

Could be related to issue 2500


Reply via email to