changeset 841:783f67fbdf4a

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!
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 10 Dec 2008 13:56:10 +0100
parents a125ada7fd95
children 880b7aa29aa4
files dmd/expression.c dmd2/expression.c
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/expression.c	Tue Dec 09 18:45:25 2008 +0100
+++ b/dmd/expression.c	Wed Dec 10 13:56:10 2008 +0100
@@ -3761,10 +3761,6 @@
 #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)
     {
--- a/dmd2/expression.c	Tue Dec 09 18:45:25 2008 +0100
+++ b/dmd2/expression.c	Wed Dec 10 13:56:10 2008 +0100
@@ -3829,10 +3829,6 @@
 #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)
     {