[Issue 8424] Compile time conversions of double/floats to strings

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 10 23:59:35 UTC 2020


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

--- Comment #6 from Witold Baryluk <witold.baryluk+d at gmail.com> ---
BTW. Mixing is not needed to trigger the issue:

import std.conv : to;
enum x = to!string(0.1);

is enough:

/usr/lib/ldc/x86_64-linux-gnu/include/d/std/exception.d(516): Error: uncaught
CTFE exception std.format.FormatException("Cannot format floating point types
at compile-time")
bench.d(338):        called from here: to(0.1)

--


More information about the Digitalmars-d-bugs mailing list