Merge DMD r262: bugzilla 3381 ([tdpl] Incorrect assessment of ...)

The full bug title is: [tdpl] Incorrect assessment of overriding in
triangular-shaped hierarchy.
---
 dmd/class.c |    2 +-
 dmd/func.c  |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
This commit is contained in:
Leandro Lucarella
2010-01-06 15:18:20 -03:00
parent 357dc9c1a9
commit fa910e3648

View File

@@ -994,6 +994,8 @@ void FuncDeclaration::semantic3(Scope *sc)
v = new VarDeclaration(loc, type->nextOf(), outId, NULL);
v->noscope = 1;
#if DMDV2
if (!isVirtual())
v->storage_class |= STCconst;
if (f->isref)
{
v->storage_class |= STCref | STCforeach;