[Issue 7883] Compiler segfaults with double inheritance and function contract

2013-07-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7883



--- Comment #9 from github-bugzi...@puremagic.com 2013-07-25 20:01:03 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ba2caff1a4819fecd36954a627f07019ec5ff99c
fix issue 7883 - Compiler segfaults with double inheritance and function
contract

https://github.com/D-Programming-Language/dmd/commit/ba1ed2c4aaf52edc90e8cd64e736896b31ecf012
Merge pull request #2379 from hpohl/7883

fix issue 7883 - Compiler segfaults with double inheritance and function
contract

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


[Issue 7883] Compiler segfaults with double inheritance and function contract

2013-07-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7883


Henning Pohl  changed:

   What|Removed |Added

   Keywords||pull
 CC||henn...@still-hidden.de


--- Comment #8 from Henning Pohl  2013-07-24 12:29:54 
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2379

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


[Issue 7883] Compiler segfaults with double inheritance and function contract

2012-05-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7883


Don  changed:

   What|Removed |Added

   Keywords||ice
 CC||clugd...@yahoo.com.au
Version|D2  |D1 & D2
Summary|Compiler crashes with   |Compiler segfaults with
   |double inheritance and  |double inheritance and
   |function contract   |function contract
 OS/Version|Windows |All


--- Comment #7 from Don  2012-05-14 03:16:38 PDT ---
Also crashes on D1 Linux.

It's in func.c(1987), in FuncDeclaration::mergeFensure(Statement * sf)

fensure is NULL (In fact, it's called with fensure = mergeFensure(fensure)

if (sf)
{
sf = new CompoundStatement(fensure->loc, s2, sf);
}

Changing this to sf->loc prevents the segfault. But, there's something else
wrong -- after this change, it prints

bug.d(21): Error: undefined identifier result

whereas it should compile without error.

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