I replaced lines 3249 and 3250 with: version(OSX) {} else assert(isNaN(pow(one, dinf))); version(OSX) {} else assert(isNaN(pow(-one, dinf))); to get std.math to unittest on osx. Andrei