[Issue 15459] stdin.byLine.each!(map!somefunc) compiles, fails to link with ld

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 25 08:39:18 PDT 2017


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

--- Comment #8 from ag0aep6g at gmail.com ---
(In reply to Vladimir Panteleev from comment #7)
> This is not a valid reduction because .front is never called.

front is never called in the original code either.

> The compiler
> seems to be skipping semantic analysis of uncalled functions here to avoid
> forward reference issues: https://github.com/dlang/dmd/pull/2851

So the invalid front is supposed to be accepted (if it's never called)? Then I
suppose the accepts-invalid aspect of this issue is WONTFIX.

But it should link then, no?

--


More information about the Digitalmars-d-bugs mailing list