[Issue 21688] CTFE has floats and doubles that exceed float.max and double.max

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 8 10:50:49 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21688

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Shouldn't the second assert fail? My expectation would be that `float.max *
100` causes an overflow and therefore the value is trimmed to the size of
`float` which is a value smaller than `float.max`. Or do we guarantee that in
case of an overflow, float.infinity is seated in the variable?

--


More information about the Digitalmars-d-bugs mailing list