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



--- Comment #3 from yebblies <yebbl...@gmail.com> 2010-07-16 05:02:11 PDT ---
This seems to crash with every power of two, int or BigInt.

import std.bigint;
void main()
{
    foreach(a; 0..1000)
    {
        foreach(b; 0..1000)
        {
            try
            {
                scope(failure) writeln(a, " % ", b, " failed");
                auto x = BigInt(a) % b;
            } catch {}
            try
            {
                scope(failure) writeln(a, " % BigInt(", b, ") failed");
                auto x = BigInt(a) % BigInt(b);
            } catch {}
        }
    }
}

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

Reply via email to