[Issue 2592] New: Cast in std.stdio disallowed in safe mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 18 13:42:06 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2592

           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
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrew.talbot at talbotville.com


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.


-- 



More information about the Digitalmars-d-bugs mailing list