cat > bug.d << CODE mixin template mix() { uint _x; } struct Foo { immutable Foo fa = Foo(0); this(uint x) { _x = x; } mixin mix!(); } CODE dmd -c bug -------- bug.d(12): Error: couldn't find field _x of type uint in Foo() bug.d(8): called from here: Foo().this(0u) --------
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0d304bf861b3dd323d3662edfc0f7f17566929ae fix Issue 7974 - forward reference of mixin declaration
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d13dc678353fd6798b15d9268e6fcf9c7837c23f fix Issue 7974 - forward reference of mixin declaration