November 20, 2011 [Issue 6978] New: Mixin behavior order dependent | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6978 Summary: Mixin behavior order dependent Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: Norbert@Nemec-online.de --- Comment #0 from Norbert Nemec <Norbert@Nemec-online.de> 2011-11-20 06:05:51 PST --- The attached file fails to compile with the message: ./bug_mixin_order.d(6): Error: forward reference of variable rank ./bug_mixin_order.d(10): Error: mixin bug_mixin_order.MyArray!(int,4).MyArray.verifyArray!() error instantiating ./bug_mixin_order.d(20): Error: template instance bug_mixin_order.MyArray!(int,4) error instantiating ------------ Strangely, the assertion fails only if it is forward referencing *and* inside a mixin. Either situation on its own works fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 20, 2011 [Issue 6978] Mixin behavior order dependent | ||||
---|---|---|---|---|
| ||||
Posted in reply to Norbert Nemec | http://d.puremagic.com/issues/show_bug.cgi?id=6978 --- Comment #1 from Norbert Nemec <Norbert@Nemec-online.de> 2011-11-20 06:07:03 PST --- Created an attachment (id=1046) The file failing to compile... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation