[Issue 7917] -inline option fails for complex expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 17 11:36:21 PDT 2012


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



--- Comment #6 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list