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.
The -safe switch will be replaced by @safe function attributes.