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.
Created attachment 1046 [details] The file failing to compile...
The provided code compiles as of v2.065.