The following reduced example of a TCP server segfaults with DMD64 D Compiler v2.094.1-beta.1 when compiled with *both* -inline and -preview=dip1021:
import std.socket : TcpSocket;
import std.stdio : writefln;
void main() {
auto listener = new TcpSocket;
auto client = listener.accept;
writefln("Received connection from %s.", client.remoteAddress.toString);
}
Comment #1 by razvan.nitu1305 — 2023-04-05T11:28:49Z
Tested with latest master. It seems that the `-inline` switch does not affect the outcome. This seems to be a dip1021 problem.
Comment #2 by robert.schadek — 2024-12-13T19:11:58Z