[Issue 15251] std.datetime bug with -inline

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 27 03:22:54 PDT 2015


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #3 from Martin Nowak <code at dawg.eu> ---
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.

--


More information about the Digitalmars-d-bugs mailing list