Initial merge of upstream v2.071.0-b2

Notably, the glue layer side of the changed multiple interface
inheritance layout (DMD a54e89d) has not been implemented yet.

This corresponds to DMD commit 3f6a763c0589dd03c1c206eafd434b593702564e.
This commit is contained in:
David Nadlinger 2016-04-02 18:08:20 +01:00
parent fa8fe51eb6
commit 9f998a398d
93 changed files with 5923 additions and 3779 deletions

View file

@ -503,7 +503,7 @@ void DtoCreateNestedContext(FuncDeclaration *fd) {
// go through all nested vars and assign addresses where possible.
for (auto vd : fd->closureVars) {
if (needsClosure && vd->needsAutoDtor()) {
if (needsClosure && vd->needsScopeDtor()) {
// This should really be a front-end, not a glue layer error,
// but we need to fix this in DMD too.
vd->error("has scoped destruction, cannot build closure");