[Issue 4093] Segfault(interpret.c): with recursive struct templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 20 01:39:14 PDT 2010


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



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-04-20 01:39:08 PDT ---
This bug is completely fixed by the patch to 4094. However, I think this bug
does reveal another problem which is also worth fixing.

The segfault itself can also be fixed with this patch to expression.c line 280.
The error message it gives is nonsense (so the patch to bug 4094 fixes that),
but I think adding more ErrorExps is no bad thing, and may prevent another
future crash.


            e1->error("this for %s needs to be type %s not type %s",
                var->toChars(), ad->toChars(), t->toChars());
+            e1 = new ErrorExp();
        }

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


More information about the Digitalmars-d-bugs mailing list