Merged DMD commit ac685a4b2ec07af83f687f41496e3af02e3f0fe:

bugzilla 190 and 4753
This commit is contained in:
David Nadlinger
2011-04-22 19:08:44 +02:00
parent ab749efffa
commit 2c081edfcd
3 changed files with 16 additions and 1 deletions

View File

@@ -3994,6 +3994,9 @@ Expression *VarExp::semantic(Scope *sc)
#endif
}
if (type && !type->deco)
type = type->semantic(loc, sc);
/* Fix for 1161 doesn't work because it causes protection
* problems when instantiating imported templates passing private
* variables as alias template parameters.
@@ -5562,7 +5565,8 @@ Expression *DotIdExp::semantic(Scope *sc)
e->type = v->type;
}
}
return e->deref();
e = e->deref();
return e->semantic(sc);
}
FuncDeclaration *f = s->isFuncDeclaration();