Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/dmd/func.c Wed Jan 06 15:18:20 2010 -0300 +++ b/dmd/func.c Wed Jan 06 15:18:20 2010 -0300 @@ -994,6 +994,8 @@ 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;