https://issues.dlang.org/show_bug.cgi?id=18815
--- Comment #1 from Manu <[email protected]> --- I just confirmed, this is a regression from 2.78 to 2.79. It runs when building with 2.78, newer releases segfault. main.cpp: --------- #include <thread> extern "C" void rt_init(); extern "C" void dfunc(); void thread_func() { dfunc(); } void main() { rt_init(); std::thread thread(thread_func); thread.join(); } test.d: ------- import std.stdio; extern(C) void dfunc() { import core.thread; thread_attachThis(); writeln("Hello\n"); } --
