struct Foo { int x; this(int x_) { this.x = x_; } } void main() { const Foo* f = new Foo(1); f.x++; } DMD 2.055head gives no line number: Error: can only initialize const member x inside constructor
https://github.com/D-Programming-Language/dmd/pull/357
https://github.com/D-Programming-Language/dmd/commit/41e81b3be5b34cc6e790277fe25067796f3015f3
I don't think this issue exists for D1, marking as fixed.