Mercurial > projects > ldc
diff dmd/class.c @ 1367:8026319762be
Merged DMD 1.045 !!!
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sat, 16 May 2009 22:21:31 +0200 |
parents | 78038e540342 |
children | 05c235309d6f |
line wrap: on
line diff
--- a/dmd/class.c Sat May 16 18:37:16 2009 +0200 +++ b/dmd/class.c Sat May 16 22:21:31 2009 +0200 @@ -522,7 +522,7 @@ else assert(0); assert(!vthis); - vthis = new ThisDeclaration(t); + vthis = new ThisDeclaration(loc, t); members->push(vthis); } } @@ -1225,11 +1225,14 @@ { if (poffset) { *poffset = b->offset; + if (j && bc->base->isInterfaceDeclaration()) + *poffset = OFFSET_RUNTIME; } return 1; } if (isBaseOf(b, poffset)) - { + { if (j && poffset && bc->base->isInterfaceDeclaration()) + *poffset = OFFSET_RUNTIME; return 1; } }