[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 06:41:11 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=15459
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |ag0aep6g at gmail.com
Resolution|INVALID |---
--- Comment #6 from ag0aep6g at gmail.com ---
(In reply to Vladimir Panteleev from comment #3)
> I'm closing this for now, but please reopen if you can provide a working
> practical example.
Reduced accepts-invalid:
----
enum e = is(typeof(map()));
struct MapResult()
{
this(char[] a) {}
char front()
{
dchar d;
return d; /* should fail compilation */
}
}
void map()()
{
auto mr = MapResult!()([]);
}
void main()
{
map();
}
--
More information about the Digitalmars-d-bugs
mailing list