[Issue 8562] math.pow fails at compile-time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 19 22:09:35 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8562



--- Comment #1 from Caligo <iteronvexor at gmail.com> 2012-08-19 22:09:30 PDT ---
yup, it's math.isNaN().

template T() {
  enum a = isNaN(1.3);
}

unittest
{
  alias T!() t;
}

/home/b/phobos/std/math.d(2369): Error: Cannot convert &real to ushort* at
compile time
t.d(474):        called from here: isNaN(1.3L)
t.d(479): Error: template instance units.T!() error instantiating


God please, will somebody fix this?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list