Bug 711 – combining mixins and overriding causes inifite loops

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-22T07:21:01Z
Last change time
2019-05-28T12:12:02Z
Keywords
pull, wrong-code
Assigned to
Walter Bright
Creator
Thomas Kühne

Comments

Comment #0 by thomas-dloop — 2006-12-22T07:21:01Z
(Originally posted by Chris Miller <[email protected]> on 2006-01-30 as news:op.s36xvez5po9bzi@moe) # # import std.stdio; # # template Mixer(){ # void test(){ # writefln("Mixer.test"); # } # } # # class Foo{ # void test(){ # writefln("Foo.test"); # } # } # # class Bar : Foo{ # mixin Mixer!() mixer; # # void test(){ # writefln("Bar.test"); # mixer.test(); # } # } # # void main(){ # Bar f = new Bar(); # f.test(); # } # output: > Bar.test > Bar.test > Bar.test > [...] expected output: > Bar.test > Mixer.test test cases: http://dstress.kuehne.cn/run/m/mixin_16_A.d http://dstress.kuehne.cn/run/m/mixin_16_B.d http://dstress.kuehne.cn/run/m/mixin_16_C.d http://dstress.kuehne.cn/run/m/mixin_16_D.d
Comment #1 by dlang-bot — 2019-05-28T09:58:00Z
@RazvanN7 created dlang/dmd pull request #9908 "Fix Issue 711 - combining mixins and overriding causes inifite loops" fixing this issue: - Fix Issue 711 - combining mixins and overriding causes inifite loops https://github.com/dlang/dmd/pull/9908
Comment #2 by dlang-bot — 2019-05-28T12:12:02Z
dlang/dmd pull request #9908 "Fix Issue 711 - combining mixins and overriding causes inifite loops" was merged into master: - aaa346b178b80372053bd0056b156fd6081883c6 by RazvanN7: Fix Issue 711 - combining mixins and overriding causes inifite loops https://github.com/dlang/dmd/pull/9908