[Issue 1719] New: Compiler crash or unstable code generation with scoped interface instances

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 9 09:24:44 PST 2007


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

           Summary: Compiler crash or unstable code generation with scoped
                    interface instances
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jason.james.house at gmail.com


The bottom of this post contains code that reproduces the problem.

It's known to cause issues with the following conditions:
dmd 1.018, windows, tango
dmd 1.023, linux, tango

It's known to not cause issues with the following conditions:
dmd 1.023, linux, phobos
dmd 1.024, ???, phobos
gdc 0.24, linux, tango
gdc 0.24, linux-64, phobos

It looks to be specific to the combination of dmd and tango.  It has not been
tested with dmd 2.x.


////////////////////////////////////////////
//   CODE
////////////////////////////////////////////
version=crash;
//version=work1;
//version=work2;
//version=work3;

interface I{
}

class C : public I{
}

unittest{
        version(crash) scope I def = new C;
        version(work1) scope C def = new C;
        version(work2)       I def = new C;
        version(work3)       C def = new C;
}

int main(){
        return 0;
}


-- 



More information about the Digitalmars-d-bugs mailing list