On Friday, 14 March 2014 at 19:24:21 UTC, Chris Williams wrote: It looks like you might be right after all about the code being invalid D. It could be a bug when it compiles without the cast. I filed a bug report about it, see where it leads :D Thanks, ed