www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3406] New: [tdpl] Cannot compile "Hello, world" or even less with -safe

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3406

           Summary: [tdpl] Cannot compile "Hello, world" or even less with
                    -safe
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei metalanguage.com> 2009-10-15
17:23:52 PDT ---
This program:

import std.stdio;

void main() {
}

fails to compile if the -safe switch is used with the error:

/home/andrei/code/dmd/druntime/import/core/stdc/signal.d(25): Error: cast from
int to void C function(int) not allowed in safe mode
/home/andrei/code/dmd/druntime/import/core/stdc/signal.d(26): Error: cast from
int to void C function(int) not allowed in safe mode
/home/andrei/code/dmd/druntime/import/core/stdc/signal.d(27): Error: cast from
int to void C function(int) not allowed in safe mode

We must define and implement the Trusted Computing Base model for druntime and
phobos.

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2009-11-21
02:17:12 PST ---
The -safe switch will be replaced by  safe function attributes.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2009