Thread overview
[D-runtime] failure with new druntime core/time.d
Aug 15, 2011
Walter Bright
Aug 15, 2011
Walter Bright
Aug 16, 2011
Walter Bright
August 15, 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()
{
}
-----------------------------------------------------
August 15, 2011

On 8/15/2011 1:12 PM, Walter Bright wrote:
> This only happens on Windows

The other platforms too.
August 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6502

On 8/15/2011 1:12 PM, Walter Bright wrote:
> \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)()