mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user