Bug 2758 – An access violation within complicated inheritance of interface and class

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-03-24T11:52:00Z
Last change time
2015-06-09T01:21:09Z
Keywords
patch, wrong-code
Assigned to
bugzilla
Creator
rayerd.wiz

Attachments

IDFilenameSummaryContent-TypeSize
362issue2758.patchfixtext/plain325

Comments

Comment #0 by rayerd.wiz — 2009-03-24T11:52:18Z
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();}
Comment #1 by schveiguy — 2009-03-24T12:56:43Z
Probably related to Bug 2061, but I can't tell.
Comment #2 by rsinfu — 2009-05-11T03:05:12Z
Created attachment 362 fix It's just a typo :)
Comment #3 by rsinfu — 2009-05-14T20:43:47Z
> Probably related to Bug 2061, but I can't tell. Certainly a duplicate of 2061. The patch also fixes it.
Comment #4 by rsinfu — 2009-05-14T20:50:40Z
*** This issue has been marked as a duplicate of issue 2061 ***