[Issue 402] New: compiler crash with mixin and forward reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 5 17:13:48 PDT 2006


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

           Summary: compiler crash with mixin and forward reference
           Product: D
           Version: 0.168
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: digitalmars-com at baysmith.com


The following may be incorrect code, but it crashes the compiler.

>dmd -c issue.d
issue.d(8): mixin Foo!(y) cannot resolve forward reference
***** Crash *****

----- issue.d -----
template Foo(alias b)
{
    int a() { return b; }
}

void main()
{
    mixin Foo!(y) y;
}


-- 




More information about the Digitalmars-d-bugs mailing list