[Issue 6426] ICE(toir.c) with function-nested alias

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 29 06:47:54 PDT 2012


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


Max Klyga <necroment at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |necroment at gmail.com


--- Comment #3 from Max Klyga <necroment at gmail.com> 2012-07-29 06:47:52 PDT ---
DMD 2.069, OS X 10.6.8

Reduced test case:

template unaryFun(alias fun) {
    alias fun unaryFun;
}

template map(fun...) {
    auto map(Range)(Range ) {
        alias unaryFun!fun _fun;
        @property back() {
            _fun;
        }
    }
}

template reduce(fun...) {
    auto reduce()() {}
}

void main() {
    alias reduce!({}) rngMin2;
    map!rngMin2([]);
}

-- 
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