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

           Summary: dmd-2.004 segfaults after encountering any source code
                    error
           Product: D
           Version: 2.004
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: markusle@gmail.com


Hi,

On my linux box, dmd-2.004 exits with a segmentation fault after encountering any (at least the ones I've tested) error in the source code. dmd-2.003 works fine. Here's an example

[markus@despina] cat foo.d
int main()
{
  int i;

  bogus;

  return 0;
}

Now, with dmd-2.003 I get (as expected)

[markus@despina] dmd foo.d
foo.d(5): Error: undefined identifier bogus
foo.d(5): Error: identifier has no effect in expression (bogus)

whereas dmd-2.004 segfaults

[markus@despina] dmd foo.d
foo.d(5): Error: undefined identifier bogus
/opt/dmd/bin/dmd: line 2: 17227 Segmentation fault      /opt/dmd/bin/dmd.bin
-I/opt/dmd/src/phobos -L/opt/dmd/lib/libphobos2.a $*

Please let me know what additional details you guys need for debugging this.

Thanks,
Markus


-- 

October 06, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1489


markusle@gmail.com changed:

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




------- Comment #1 from markusle@gmail.com  2007-10-06 08:21 -------
dmd-2.005 resolved this issue, hence I am closing
this bug.

Thanks,
Markus


--