[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 12:53:31 UTC 2021


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #3 from kinke <kinke at gmx.net> ---
This is a consequence of CTFE not operating with float or doubles at all - all
floating-point values are `real_t` types at compile-time, which corresponds to
`real` for DMD, but not with LDC and GDC. So something like this can happen
with `real` as well, and CTFE calculations likely yield a different result than
runtime computations, not just for float and double.

--


More information about the Digitalmars-d-bugs mailing list