From c14996f39e97ada7bed59c5a4dc2c40bc53b9e0f Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Wed, 10 Dec 2008 13:56:10 +0100 Subject: [PATCH] Removed insufficient fix for DMD bug 1161, it was causing problems with instantiating imported templates, and passing private variables as aliases. I failed to come up with a proper fix! --- dmd/expression.c | 4 ---- dmd2/expression.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/dmd/expression.c b/dmd/expression.c index ddf71ea0..516c6f21 100644 --- a/dmd/expression.c +++ b/dmd/expression.c @@ -3761,10 +3761,6 @@ Expression *VarExp::semantic(Scope *sc) #endif } - // LDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 - // check access to VarDeclaration - accessCheck(loc, sc, NULL, var); - VarDeclaration *v = var->isVarDeclaration(); if (v) { diff --git a/dmd2/expression.c b/dmd2/expression.c index b2af49c2..7212c51f 100644 --- a/dmd2/expression.c +++ b/dmd2/expression.c @@ -3829,10 +3829,6 @@ Expression *VarExp::semantic(Scope *sc) #endif } - // LDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 - // check access to VarDeclaration - accessCheck(loc, sc, NULL, var); - VarDeclaration *v = var->isVarDeclaration(); if (v) {