https://issues.dlang.org/show_bug.cgi?id=14245

--- Comment #1 from Marc Schütz <[email protected]> ---
Full compilable and runnable example (main() was missing):

    struct S {
        immutable int x;
        this(int a) {
            import std.stdio;
            immutable int* b = &this.x;
            writeln(*b); // prints 0
            this.x = a;
            writeln(*b); // prints value of a
        }
    }

    void main() {
        S(10);
    }

--

Reply via email to