www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12847] New: iota.cycle with 64-bit step causes ICE in comsub


          Issue ID: 12847
           Summary: iota.cycle with 64-bit step causes ICE in comsub
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: kirsybuu gmail.com

import std.range;
void main() {
    auto r1 = iota(0uL, 10uL, 1uL).cycle();


$ dmd -O -inline bug_cgcod.d
Internal error: backend/cgcod.c 2304

$ latest/dmd/src/dmd -O -inline bug_cgcod.d 
DMD v2.066-devel-7b7e68a DEBUG
couldn't find cse e = 0xe36cdd0, pass = 0
el:0xe36cdd0 cnt=1 cs=0 +  TY* 0xe36b308 0xd2933c8
 el:0xe36b308 cnt=9 cs=1 var  TY*  this
 el:0xd2933c8 cnt=1 cs=255 const  TYuns long long 16LL 
Internal error: backend/cgcod.c 2304

Jun 03 2014