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

           Summary: An access violation within complicated inheritance of
                    interface and class
           Product: D
           Version: 2.025
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: rayerd....@gmail.com


interface IA{void func();}
interface IB{}
interface IC: IB, IA{}
interface ID: IC{}
class CA: IC{void func(){}}
class CB: CA, ID{void func(){}}
void main()
{
  ID c = new CB;
  c.func(); //object.Error: Access Violation
}

But the Access Violation does not occur if interface ID was defined in this
way.

interface ID: IC{void func();}


-- 

Reply via email to