[Issue 1051] New: foreach over member array in static func causes ICE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 11 01:48:20 PST 2007


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

           Summary: foreach over member array in static func causes ICE
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: default_357-line at yahoo.de


The following code (syntactically wrong) results first in an error, then in an
ICE on MinGW/gdc 4.1.2/0.23

class errors {
  int[] t;
  static void crash() { foreach (x; t) {} }
}

void main() { }

Greetings --downs


-- 



More information about the D.gnu mailing list