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

Martin Nowak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Martin Nowak <[email protected]> ---
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.

--

Reply via email to