Thread overview
[Issue 2758] New: An access violation within complicated inheritance of interface and class
Mar 24, 2009
d-bugmail
Mar 24, 2009
d-bugmail
Apr 03, 2009
Haruki Shigemori
May 11, 2009
Shin Fujishiro
May 15, 2009
Shin Fujishiro
May 15, 2009
Shin Fujishiro
March 24, 2009
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();}


-- 

March 24, 2009
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.


-- 

April 03, 2009
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
May 11, 2009
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 15, 2009
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 15, 2009
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: -------