The following crashes DMD when trying to convert floating point to integral at compile time using an union: --- import std.metastrings; union A { double x; int y; } alias ToString!(A(5.2).y) B; // Crashes here ---
Fixed in DMD2.040. Probably a duplicate -- several crashing bugs were fixed in that release.