Summary: Cast in std.stdio disallowed in safe mode
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

When the following program is compiled using dmd with the "safe" switch set, it
produces the error message: "/usr/local/src/phobos/std/c/linux/linux.d(280):
Error: cast from int to void* not allowed in safe mode"

import std.stdio;

void main() { }

This bug persists for dmd version 2.023.


Reply via email to