[Issue 2644] New: Unresolved template reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 3 06:17:43 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2644

           Summary: Unresolved template reference
           Product: D
           Version: 2.021
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


//---
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


-- 



More information about the Digitalmars-d-bugs mailing list