[Issue 1296] New: ICE when object.d is missing things

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 28 06:43:13 PDT 2007


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

           Summary: ICE when object.d is missing things
           Product: DGCC aka GDC
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: madou at madou.org


cc1d segfaults when trying to compile an object.d source file that's missing
certain things, instead of giving a an error message. An object.d file
containing only an empty Object class is the simplest test case that reproduces
the error.


--------- object.d ---------

class Object
{
}

----------------------------


Program received signal SIGSEGV, Segmentation fault.
0x000000000047c682 in ClassDeclaration::toSymbol (this=0xd44710) at
../../gcc/d/d-decls.cc:677
677             decl = build_decl( VAR_DECL, get_identifier( csym->Sident ),


This is the stack trace:

#0  0x000000000047c682 in ClassDeclaration::toSymbol (this=0xd44710) at
../../gcc/d/d-decls.cc:677
#1  0x0000000000475a15 in ClassDeclaration::toObjFile (this=0xd44710) at
../../gcc/d/dmd/toobj.c:376
#2  0x0000000000485c85 in Module::genobjfile (this=0xd44470) at
../../gcc/d/d-glue.cc:2614
#3  0x000000000047a74f in d_parse_file () at ../../gcc/d/d-lang.cc:941
#4  0x00000000006f0128 in toplev_main (argc=<value optimized out>, argv=0x8) at
../../gcc/toplev.c:991
#5  0x0000000000837345 in __libc_start_main ()
#6  0x00000000004001b9 in _start ()


-- 



More information about the D.gnu mailing list