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

           Summary: Assertion failure: on line 1166 in interpret.c
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: r.97...@gmail.com


--- Comment #0 from Ryuichi OHORI <r.97...@gmail.com> 2012-10-21 15:04:38 PDT 
---
void main() {}

static int x = f();

static int f()
out // or in, not body
{
label:
    foreach (i; 0..1)
    {
        break label; // doesn't work.
        //break; // works.
        //continue label; // doesn't work.
        //continue; // works.
    }
}
body
{
    return 1;
}

compiling the code above outputs:
> Assertion failure: 'label && label->statement' on line 1166 in file 
> 'interpret.c'
> 
> abnormal program termination

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

Reply via email to