Created attachment 1559
Minimized test case
The attached code doesn't work with 2.069rc1.
It works with beta.
It says:
Error: cannot cast cast(ubyte)20u to void at compile time
Comment #1 by dlang-bugzilla — 2015-10-27T09:44:38Z
Comment #2 by dlang-bugzilla — 2015-10-27T09:44:52Z
Sorry, wrong window
Comment #3 by code — 2015-10-27T10:22:54Z
cat > a.d << CODE
import std.net.curl;
CODE
cat > b.d << CODE
import std.datetime;
string J(Date L)
{
return L.toISOExtString;
}
CODE
dmd -inline -o- a.d b.d
----
Error: cannot cast cast(ubyte)20u to void at compile time
/usr/include/dmd/phobos/std/conv.d(1259): called from here: array(toChars(value + 0LU))
/usr/include/dmd/phobos/std/conv.d(861): called from here: toImpl(value, 10u, cast(LetterCase)false)
/usr/include/dmd/phobos/std/format.d(3490): called from here: to(n)
/usr/include/dmd/phobos/std/format.d(3501): called from here: gencode()
/usr/include/dmd/phobos/std/format.d(3501): Error: argument to mixin must be a string, not (gencode()) of type string
/usr/include/dmd/phobos/std/format.d(545): Error: template instance std.format.formatNth!(Appender!string, char, const(short), const(Month), const(ubyte)) error instantiating
----
Confirmed, currently reducing.
Comment #4 by dlang-bugzilla — 2015-10-27T10:49:58Z
(In reply to Martin Nowak from comment #3)
> Confirmed, currently reducing.
Not much better.
cat > bug.d << CODE
import std.concurrency;
void receiveAsyncChunks(Tid fromTid)
{
fromTid.send(thisTid);
}
CODE