Bug 3406 – [tdpl] Cannot compile "Hello, world" or even less with -safe

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2009-10-15T17:23:00Z
Last change time
2015-06-09T05:15:15Z
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2009-10-15T17:23:52Z
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.
Comment #1 by bugzilla — 2009-11-21T02:17:12Z
The -safe switch will be replaced by @safe function attributes.