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



--- Comment #3 from Brad Roberts <bra...@puremagic.com> 2010-08-30 23:29:58 PDT 
---
ok, tested on linux with r652:

$ gdb --args ../src/dmd -Ifail_compilation -odtest_results/fail_compilation
-oftest_results/fail_compilation/fail225 -c fail_compilation/fail225.d

fail_compilation/fail225.d(8): Error: cannot implicitly convert expression (1)
of type int to char*
fail_compilation/fail225.d(8): Error: too many initializers for Struct

Program received signal SIGSEGV, Segmentation fault.
0x080b322c in Type::isImmutable (this=0x0) at mtype.h:255
255         int isImmutable()   { return mod & MODimmutable; }

(gdb) up
#1  0x0812f10b in Type::invariantOf (this=0x0) at mtype.c:381
381         if (isImmutable())
(gdb) 
#2  0x08053c16 in StructLiteralExp::implicitConvTo (this=0x823e390,
t=0x8242f78) at cast.c:433
433                     te = te->invariantOf();
(gdb) print te
$1 = (Type *) 0x0
(gdb) print t->mod
$2 = 4 '\004'
(gdb) print *e
$3 = {
  <Object> = {
    _vptr.Object = 0x81c5ee8
  }, 
  members of Expression: 
  loc = {
    filename = 0x820e188 "fail_compilation/fail225.d", 
    linnum = 8
  }, 
  op = TOKaddress, 
  type = 0x0, 
  size = 28 '\034', 
  parens = 0 '\000'
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to