---- import std.string; shared size_t num; void main() { auto s = std.string.format("foo %s", num); } ---- It seems like TypeInfo_Shared is interpreted as TypeInfo_Struct and subsequently segfaults at line format.d(3932). case Mangle.Tstruct: { TypeInfo_Struct tis = cast(TypeInfo_Struct)ti; if (tis.xtoString is null) // <- dereference of null pointer
This compiles and runs without errors as of v2.065.