[Issue 3803] compiler segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 27 15:49:53 PST 2010


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



--- Comment #2 from Fawzi Mohamed <fawzi at gmx.ch> 2010-02-27 15:49:51 PST ---
I have tried to find the problem using ldc (that shares the problem), also
using the larger correct code that shows the problem (stacktraces are similar).

The problem seems to be located in expression.c:5048

        Dsymbol *s = ti->inst->toAlias();

ti->inst == NULL, so that the compiler segfaults.
In the correct code I am not sure if inst is NULL because a single pass cannot
instantiate the template, or because it is in an is expression.
In any case simply catching this case and return new ErrorExp(); doesn't seem
to be enough (then I have other problems).

-- 
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