[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Mar 23 12:16:18 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15822
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #6 from hsteoh at quickfur.ath.cx ---
This bug has not yet been (fully) fixed:
------
import std.stdio;
class Wrapper
{
typeof(stdin.byLine()) src;
}
void main()
{
auto x = new Wrapper();
x.src = stdin.byLine();
}
------
Run as 'echo | ./program'. Output:
------
core.exception.InvalidMemoryOperationError at src/core/exception.d(693): Invalid
memory operation
------
--
More information about the Digitalmars-d-bugs
mailing list