digitalmars.D.bugs - [Issue 15809] New: Putting std.stdio.File.ByLine ina class causes
- via Digitalmars-d-bugs (35/35) Mar 18 2016 https://issues.dlang.org/show_bug.cgi?id=15809
https://issues.dlang.org/show_bug.cgi?id=15809 Issue ID: 15809 Summary: Putting std.stdio.File.ByLine ina class causes Invalid memory operation upon exit Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: hsteoh quickfur.ath.cx Reduced code: ------ import std.stdio; class Wrapper { typeof(stdin.byLine()) src; } void main() { auto x = new Wrapper(); x.src = stdin.byLine(); } ------ Compiled with git HEAD, upon program exit, the following error is triggered: ------ core.exception.InvalidMemoryOperationError src/core/exception.d(693): Invalid memory operation ------ Commenting out the second line in main() makes the problem go away. Works with older releases of dmd toolchain. --
Mar 18 2016