[Issue 6029] Regression(2.053): DMD stack overflow with invalid alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 3 08:43:39 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6029
--- Comment #5 from Trass3r <mrmocool at gmx.de> 2011-11-03 08:43:09 PDT ---
caused by mtype.c:
// 'from' is A and 'to' is int
static MATCH aliasthisConvTo(AggregateDeclaration *ad, Type *from, Type *to)
{
assert(ad->aliasthis);
Declaration *d = ad->aliasthis->isDeclaration();
if (d)
{ assert(d->type);
Type *t = d->type; // <-- gets struct type A again
if (d->isVarDeclaration() && d->needThis())
{
t = t->addMod(from->mod);
}
...
MATCH m = t->implicitConvTo(to);
Guess it should be caught earlier though.
--
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