www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1051] New: foreach over member array in static func causes ICE

reply d-bugmail puremagic.com writes:
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 users.sf.net
        ReportedBy: default_357-line 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


-- 
Mar 11 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1051





------- Comment #1 from thomas-dloop kuehne.cn  2007-03-12 00:29 -------
Added to DStress as
http://dstress.kuehne.cn/nocompile/s/static_08_B.d
http://dstress.kuehne.cn/nocompile/s/static_08_C.d


-- 
Mar 11 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1051


dvdfrdmn users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from dvdfrdmn users.sf.net  2007-09-23 21:56 -------
Fixed in svn rev 169 / release 0.25


-- 
Sep 23 2007