www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2592] New: Cast in std.stdio disallowed in safe mode

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: andrew.talbot 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.


-- 
Jan 18 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2592






13:32:17 PDT ---
In the current version of D2 (version 2.030) the casts that cause safe mode
compilation to fail when std.stdio is imported are now to be found in
.../druntime/import/core/stdc/signal.d, the following error messages being
produced.

/usr/local/src/druntime/import/core/stdc/signal.d(25): Error: cast from int to
voidC  function(int) not allowed in safe mode
/usr/local/src/druntime/import/core/stdc/signal.d(26): Error: cast from int to
voidC  function(int) not allowed in safe mode
/usr/local/src/druntime/import/core/stdc/signal.d(27): Error: cast from int to
voidC  function(int) not allowed in safe mode

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 12 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2592


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2592


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



12:09:38 PDT ---
Fixed a while ago.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 26 2010