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

           Summary: ICE on invalid foreach aggregate
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dmitry.o...@gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.o...@gmail.com> 2013-01-01 
12:41:19 PST ---
The following:

void main(){
 foreach(divisor; !(2, 3, 4, 8, 7, 9))
    foreach(v; 0..uint.max)//comment this out and it compiles
    {

    }
}

Crashes DMD 2.061beta with:

fastdiv.d(79): Error: invalid foreach aggregate false
Assertion failure: '0' on line 2660 in file 'statement.c'

abnormal program termination

2.060 produces same results.

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

Reply via email to