Bug 17933 – Warn in case of implicit truncating float conversion

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-10-24T14:38:44Z
Last change time
2017-10-28T10:08:15Z
Assigned to
No Owner
Creator
Basile B.

Comments

Comment #0 by b2.temp — 2017-10-24T14:38:44Z
Implicit float conversions (e.g from real to float) may lead to a precision loss.
Comment #1 by b2.temp — 2017-10-28T10:08:15Z
Modifications made to emit the warning have shown that it's too late for such a breaking change. Just in phobos that's hundreds of return, opOpBinary and assignment to patch.