www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 394] New: associative array of interfaces causes crash

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: digitalmars-com baysmith.com


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

//  author      Bastiaan Veelo <Bastiaan.N.Veelo ntnu.no>
//  date        2005-09-04
//  uri         news:dffjik$2p30$1 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;
}


-- 
Oct 02 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=394


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 0.169


-- 
Oct 10 2006