www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2758] New: An access violation within complicated inheritance of interface and class

reply d-bugmail puremagic.com writes:
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: bugzilla digitalmars.com
        ReportedBy: rayerd.wiz 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();}


-- 
Mar 24 2009
next sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2758





------- Comment #1 from schveiguy yahoo.com  2009-03-24 12:56 -------
Probably related to Bug 2061, but I can't tell.


-- 
Mar 24 2009
parent Haruki Shigemori <rayerd.wiz gmail.com> writes:
Thank you for your reply!
This is related to Bug 2758, and probably Bug 2061.

http://d.puremagic.com/issues/show_bug.cgi?id=2758
http://d.puremagic.com/issues/show_bug.cgi?id=2061
Apr 03 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2758





--- Comment #2 from Shin Fujishiro <rsinfu gmail.com>  2009-05-11 03:05:12 PDT
---
Created an attachment (id=362)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=362)
fix

It's just a typo :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 11 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2758





--- Comment #3 from Shin Fujishiro <rsinfu gmail.com>  2009-05-14 20:43:47 PDT
---
 Probably related to Bug 2061, but I can't tell.

Certainly a duplicate of 2061. The patch also fixes it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 14 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2758


Shin Fujishiro <rsinfu gmail.com> changed:

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




--- Comment #4 from Shin Fujishiro <rsinfu gmail.com>  2009-05-14 20:50:40 PDT
---


*** This issue has been marked as a duplicate of issue 2061 ***

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