[Issue 8865] New: Assertion failure: on line 1166 in interpret.c

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 15:04:40 PDT 2012


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: nobody at puremagic.com
        ReportedBy: r.97all at gmail.com


--- Comment #0 from Ryuichi OHORI <r.97all at 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: -------


More information about the Digitalmars-d-bugs mailing list