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

           Summary: ICE (..\ztc\cod4.c) when using a delegate inside a
                    foreach
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: 2kor...@gmail.com


Minimal testcase to reproduce:

struct Foo
{
    int i;
}

void main()
{
    Foo[] array;
    foreach (ref foo; array) {
        auto x = () {
            foo.i = 42;
        };
    }
}

Internal error: ..\ztc\cod4.c 354

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

Reply via email to