[Issue 5595] Compiler crash on heavy std.algorithm use
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 16 08:31:17 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5595
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-02-16 08:28:43 PST ---
The regression was caused by a Phobos change, which has triggered a compiler
segfault in interpret.c.
In attempting to instantiate map!(to), 'to' is a symbol with no identifier.
(.ident is NULL).
The segfault can be prevented in dsymbol.c, line 70, by checking for a null
identifier. But without knowing why we're getting a null identifier, I can't
recommend this as a valid patch.
int Dsymbol::equals(Object *o)
{ Dsymbol *s;
if (this == o)
return TRUE;
s = (Dsymbol *)(o);
- if (s && ident->equals(s->ident))
+ if (s && s->ident && ident->equals(s->ident))
return TRUE;
return FALSE;
}
--
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