[Issue 394] New: associative array of interfaces causes crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 2 15:35:14 PDT 2006


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

           Summary: associative array of interfaces causes crash
           Product: D
           Version: 0.167
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: digitalmars-com at baysmith.com


Reported on newsgroup and filed in dstress, but couldn't find a bug.

// @author@     Bastiaan Veelo <Bastiaan.N.Veelo at ntnu.no>
// @date@       2005-09-04
// @uri@        news:dffjik$2p30$1 at digitaldaemon.com

module dstress.run.a.associative_array_18_A;

interface Interface{
        int test(int);
}

class Class : Interface{
        int test(int i){
                return i+1;
        }
}

int main(){
        Class[Interface] aa;

        Class o = new Class();

        aa[o] = o;

        return 0;
}


-- 




More information about the Digitalmars-d-bugs mailing list