https://issues.dlang.org/show_bug.cgi?id=15514
ag0ae...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ag0ae...@gmail.com --- Comment #2 from ag0ae...@gmail.com --- Reduced the test case a little: main.c: ---- extern void initialize(); int main(int argc, char*argv[]) { initialize(); return 0; } ---- foo.d: ---- extern(C) void initialize() { import core.runtime; Runtime.initialize; int x; auto dg = {x = 2;}; Runtime.terminate(); } ---- Compiling and running: ---- $ gcc -c main.c $ dmd foo.d main.o $ ./foo Segmentation fault (core dumped) ---- --