www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error : circular inheritance of interface

reply "Shawn Liu" <liuxuhong.cn gmail.com> writes:
I built my project successfully with DMD 0.121.
When I built it with DMD 0.122, got an Error : "circular inheritance of 
interface".

What does this mean?


- Shawn Liu
May 04 2005
next sibling parent "Shawn Liu" <liuxuhong.cn gmail.com> writes:
I searched the forum and got nothing.

"Shawn Liu" <liuxuhong.cn gmail.com> said :d5c57l$94k$1 digitaldaemon.com...
I built my project successfully with DMD 0.121.
 When I built it with DMD 0.122, got an Error : "circular inheritance of 
 interface".

 What does this mean?


 - Shawn Liu



 
May 04 2005
prev sibling parent reply zwang <nehzgnaw gmail.com> writes:
Shawn Liu wrote:
 I built my project successfully with DMD 0.121.
 When I built it with DMD 0.122, got an Error : "circular inheritance of 
 interface".
 
 What does this mean?
 
 
 - Shawn Liu
 
 
 
 
Something like reported here: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/3757 BTW, would you post the code sample that dmd 0.122 failed to compile? Probably the circular interface inheritance bug was not fixed correctly.
May 04 2005
parent reply zwang <nehzgnaw gmail.com> writes:
zwang wrote:
 Shawn Liu wrote:
 
 I built my project successfully with DMD 0.121.
 When I built it with DMD 0.122, got an Error : "circular inheritance 
 of interface".

 What does this mean?


 - Shawn Liu
Something like reported here: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/3757 BTW, would you post the code sample that dmd 0.122 failed to compile? Probably the circular interface inheritance bug was not fixed correctly.
Confirmed. A circular inheritance detection bug was introduced in dmd 0.122.
May 04 2005
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
zwang wrote:
 zwang wrote:
<snip>
 Something like reported here:
 http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/3757

 BTW, would you post the code sample that dmd 0.122 failed to compile?
 Probably the circular interface inheritance bug was not fixed correctly.
Confirmed. A circular inheritance detection bug was introduced in dmd 0.122.
Well, we still need a testcase for it! The one you gave is one that indeed shouldn't compile. Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
May 05 2005
parent reply zwang <nehzgnaw gmail.com> writes:
Stewart Gordon wrote:
 zwang wrote:
 
 zwang wrote:
<snip>
 Something like reported here:
 http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/3757

 BTW, would you post the code sample that dmd 0.122 failed to compile?
 Probably the circular interface inheritance bug was not fixed correctly.
Confirmed. A circular inheritance detection bug was introduced in dmd 0.122.
Well, we still need a testcase for it! The one you gave is one that indeed shouldn't compile. Stewart.
Are you referring to the snippet below? <code> interface A:B{} interface B:C{} interface C:D{} interface D{} </code> Why shouldn't it compile?
May 05 2005
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
zwang wrote:
<snip>
 Are you referring to the snippet below?
 <code>
 interface A:B{}
 interface B:C{}
 interface C:D{}
 interface D{}
 </code>
No. I was referring to the one that you posted the URL to, of course. I hadn't discovered the snippet above at the time. That indeed should compile. Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
May 05 2005