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

           Summary: opDispatch with AA crashes dmd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO <zan77...@nifty.com> 2012-03-03 23:10:24 PST ---
This code crashes dmd:

struct Foo
{
    int[int] foo;
}

struct Bar
{
    Foo xxx;

    template opDispatch(string name)
    {
        @property auto ref opDispatch(this X, V)(auto ref V v) { return
mixin("xxx."~name~" = v"); }
    }
}

void main()
{
    Bar bar;

    bar.foo[0] = 0;
}

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

Reply via email to