Thread overview
[Issue 1415] New: gdc crash
Aug 13, 2007
d-bugmail
Sep 02, 2007
d-bugmail
Sep 05, 2007
d-bugmail
Feb 25, 2008
d-bugmail
August 13, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1415

           Summary: gdc crash
           Product: DGCC aka GDC
           Version: 0.23
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: sean@chittenden.org


See sample code.  Very easy to reproduce.

$ gdc -o /tmp/bug.o -c /tmp/bug.d
/tmp/bug.d:7: Error: Need 'this' to access member f
/tmp/bug.d:8: Error: Need 'this' to access member f
/tmp/bug.d: In function 'init':
/tmp/bug.d:8: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Exit 1

### BEGIN CODE ###
class Foo {
  void bar() { }
}

class Bug {
  static Bug init() {
    f = new Foo();
    f.bar();

    Bug ret = new Bug();
    return ret;
  }

private:
  Foo f;
}
### END CODE ###


-- 

September 02, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1415





------- Comment #1 from baryluk@mpi.int.pl  2007-09-02 08:41 -------
Simpler example.

module bug;

class X {
        char[] name;
        static void a() {
                assert(name is null);
        }
}

void main() {
}


-- 

September 05, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1415


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |FIXED




------- Comment #2 from dvdfrdmn@users.sf.net  2007-09-05 18:22 -------
Fixed in svn rev 151 / release 0.25


-- 

February 25, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1415





------- Comment #3 from thomas-dloop@kuehne.cn  2008-02-25 05:06 -------
Added to DStress as http://dstress.kuehne.cn/nocompile/t/this_17_A.d


--