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



--- Comment #2 from timon.g...@gmx.ch 2012-04-06 15:09:26 PDT ---
The following variation crashes the compiler with a segmentation fault:

Bar New(T)(Foo args){return null;}
class Bar{
    this(Foo){ }
    static Bar create(){
        return New!Bar(Foo(0));
    }
}

struct Foo{
    int x;
    this(T)(T ){void function() foo = {Bar.create();};}
    void bar(){Foo r=Foo("");}
}

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

Reply via email to