https://issues.dlang.org/show_bug.cgi?id=9937
Martin Nowak <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #23 from Martin Nowak <[email protected]> --- The real problem is that dmd (as only compiler) ignores `cast(float)myReal` when the float is converted to a higher precision after that. This optimization is semantically incorrect b/c rounding down can have side effects (setting exception flags). It's also unexpected b/c C (and gdc/ldc) correctly perform the rounding. Also see https://github.com/dlang/druntime/pull/1621#issuecomment-250426515 --
