www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1155] New: GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1155

           Summary: GDC crash (internal compiler error: in
                    mostly_copy_tree_r, at gimplify.c:678)
           Product: DGCC aka GDC
           Version: 0.23
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: fvbommel wxs.nl


Some simple code that crashes GDC:
====
$ cat test.d
void foo() {
        int[] arr = [0];  // to make sure below access is valid
        arr[$-1] -= 1;
}
$ gdc -c test.d
test.d: In function ‘foo’:
test.d:3: internal compiler error: in mostly_copy_tree_r, at gimplify.c:678
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
=====

Version: v0.23/x86_64 (binary package from sourceforge) on Ubuntu Edgy


-- 
Apr 16 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1155





------- Comment #1 from thomas-dloop kuehne.cn  2007-04-25 12:58 -------
Added to DStress as
http://dstress.kuehne.cn/run/b/bug_gimplify_678_A.d
http://dstress.kuehne.cn/run/b/bug_gimplify_678_B.d


-- 
Apr 25 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1155


dvdfrdmn users.sf.net changed:

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




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


-- 
Sep 23 2007