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



--- Comment #6 from bearophile_h...@eml.cc 2012-04-17 11:37:14 PDT ---
I am hitting the same "Internal error: toir.c 178" even without -inline with
this reduced code:



import std.algorithm: sort;
struct Foo(int m) {
    int x;
}
void bar(int m)(Foo!m[] foos) {
    void spam() {
        //sort!((Foo!m a, Foo!m b) => true)(foos); // no error
        sort!((a, b) => true)(foos);
    }
}
void main() {
    alias Foo!2 F2;
    bar([F2(1)]);
    alias Foo!3 F3;
    bar([F3(2)]);
}

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

Reply via email to