[Issue 15272] [2.069-rc2,inline] nothing written to output when -inline is set

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Nov 1 12:05:29 PST 2015


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

--- Comment #3 from bb.temp at gmx.com ---
(In reply to ag0aep6g from comment #2)
> (In reply to bb.temp from comment #0)
> > So far I'm here but it doesn't capture the essence of the problem.
> > 
> > ---
> [...]
> > ---
> 
> As far as I can tell, everything works as expected in that code.
> 
> The different `children` arrays are GC allocated (via ~=), but the `Foo`s
> themselves are not. So a parent `Foo` doesn't keep its `children` alive, and
> at some point the GC collects the seemingly dead arrays.

Take care with the small sample. I've written that <<it does not reproduce the
problem>>, it was just an attempt. So far it just helped to show that it's
necessary to add the ranges to the GC, which I've done to the real program.

Despite of this in the real program it's still the same, if I call
'write(slb.serialize)':

- with '-inline': stdout is empty.
- without: stdout is filled

When you consider those two facts it really looks that the inliner does
something wrong.

--


More information about the Digitalmars-d-bugs mailing list