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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugd...@yahoo.com.au
            Summary|[CTFE] "stack overflow"     |Regression(2.041) [CTFE]
                   |with ref ulong argument +   |"stack overflow" with
                   |CTFE benchmark              |recursive ref argument


--- Comment #1 from Don <clugd...@yahoo.com.au> 2011-05-17 14:04:11 PDT ---
This is not useful as a benchmark.
Reduced test case:

void test5845(ulong cols) {}

uint solve(bool niv, ref ulong cols) {
    if (niv)
        solve(false, cols);
    else
        test5845(cols);
    return 65;
}

ulong nqueen(int n) {
    ulong cols    = 0;
    return solve(true, cols);
}

static assert(nqueen(2) == 65);

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

Reply via email to