Comment #2 by moonlightsentinel — 2020-03-03T15:49:28Z
git bisect blames this commit:
commit 2b2ed40f611231d7f5b92747b619bbe067fd827b (HEAD, refs/bisect/bad)
Author: Robert Schadek <[email protected]>
Date: Thu Oct 10 15:26:22 2019 +0100
Fix Issue 20288
std.format with separator and double causes RangeError
Comment #3 by dlang-bot — 2020-03-03T16:34:57Z
@MoonlightSentinel created dlang/phobos pull request #7413 "Fix Issue 20623 - std.conv.to!string error when argument is an inout float" fixing this issue:
- Fix Issue 20623 - std.conv.to!string error when argument is an inout float
https://github.com/dlang/phobos/pull/7413
Comment #4 by dlang-bot — 2020-03-10T23:55:44Z
dlang/phobos pull request #7413 "Add tests for issue 20623 - std.conv.to!string error when argument is an inout float" was merged into master:
- d7e0c0ce70bea6ca41094e7fd7981c929c7aacbf by MoonlightSentinel:
Add tests for Issue 20623 - std.conv.to!string error when argument
is an inout float. This bug was fixed as side effect of #7407.
https://github.com/dlang/phobos/pull/7413
Comment #5 by madric — 2022-03-08T16:10:03Z
This error is also reproducible using enums, e.g.:
``` d
import std.conv : to;
struct Foo
{
enum Type { HAM, BREAD }
Type t;
void foo() inout
{
to!string(this.t);
}
}
void main()
{
Foo().foo();
}
```
> /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(1217): Error: variable `std.conv.value` only parameters or stack based variables can be `inout`