[Issue 3006] New: template module using array operation cause dmd internal error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 17 22:55:07 PDT 2009


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

           Summary: template module using array operation cause dmd
                    internal error
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: rinick at gmail.com


dmd testmodule.d test.d -oftest
Internal error: e2ir.c 632

testmodule.d:
-----------------------------------
module testmodule;
template foo(T)
{
    void foo()
    {
        T[3] a,b,c;
        a[] = b[] + c[];
    }
}
-----------------------------------

test.d:
-----------------------------------
import testmodule;
void main()
{
    foo!ulong();
        // long, double, real, cfloat etc. have this bug
        // int, short, float etc. work fine
}
-----------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list