The documentation says the modification of pointer values is not allowed in safe functions. Yet the following compiles fine on dmd:

void main() @safe
{
        int* x = new int;
        int* y = new int;
        y=x;
}

Is this simply a compiler bug?

Reply via email to