[D-runtime] failure with new druntime core/time.d

Walter Bright walter at digitalmars.com
Mon Aug 15 13:12:10 PDT 2011


This only happens on Windows with -release -inline -noboundscheck


--------------------------------------------------------------
H:\cbx\mars\test>..\dmd test72 -release -inline -noboundscheck
\cbx\mars\druntime\import\core\time.di(253): Error: template 
core.time.TickDuration.to(string units,
T) if ((units == "seconds" || units == "msecs" || units == "usecs" || units == 
"hnsecs" || units ==
"nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) does not match any 
function template declarat
ion
\cbx\mars\druntime\import\core\time.di(253): Error: template 
core.time.TickDuration.to(string units,
T) if ((units == "seconds" || units == "msecs" || units == "usecs" || units == 
"hnsecs" || units ==
"nsecs") && (__traits(isIntegral,T) && T.sizeof >= 4)) cannot deduce template 
function from argument
  types !("seconds",long)()
-------------------------------------------------------
H:\cbx\mars\test>type test72.d
import std.process;

void main()
{
}
-----------------------------------------------------


More information about the D-runtime mailing list