[Issue 4371] segfault(template.c) template tuple in is() expression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 26 12:37:15 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4371
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-11-26 12:35:50 PST ---
There's something wrong with the patch.
This part breaks Phobos unit tests:
- if (!sc->insert(s))
- error("declaration %s is already defined", s->toChars());
if (sc->sd)
s->addMember(sc, sc->sd, 1);
+ else if (!sc->insert(s))
+ error("declaration %s is already defined", s->toChars());
Changing the first of those lines to:
if (!isTuple(tded) && !sc->insert(s))
error("declaration %s is already defined", s->toChars());
allows the test code to compile. But I don't really understand why it should be
necessary. Possibly it's another bug which is being triggered.
--
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