comparison dmd/func.c @ 1608:679d101395e8

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(-)
author Leandro Lucarella <llucax@gmail.com>
date Wed, 06 Jan 2010 15:18:20 -0300
parents 207a8a438dea
children 6820110de311
comparison
equal deleted inserted replaced
1607:207a8a438dea 1608:679d101395e8
992 loc = fensure->loc; 992 loc = fensure->loc;
993 993
994 v = new VarDeclaration(loc, type->nextOf(), outId, NULL); 994 v = new VarDeclaration(loc, type->nextOf(), outId, NULL);
995 v->noscope = 1; 995 v->noscope = 1;
996 #if DMDV2 996 #if DMDV2
997 if (!isVirtual())
998 v->storage_class |= STCconst;
997 if (f->isref) 999 if (f->isref)
998 { 1000 {
999 v->storage_class |= STCref | STCforeach; 1001 v->storage_class |= STCref | STCforeach;
1000 } 1002 }
1001 #endif 1003 #endif