comparison dmd/expression.c @ 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 661384d6a936
children bc982f1ad106
comparison
equal deleted inserted replaced
840:a125ada7fd95 841:783f67fbdf4a
3758 type = new TypeDelegate(tf); 3758 type = new TypeDelegate(tf);
3759 type = type->semantic(loc, sc); 3759 type = type->semantic(loc, sc);
3760 } 3760 }
3761 #endif 3761 #endif
3762 } 3762 }
3763
3764 // LDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161
3765 // check access to VarDeclaration
3766 accessCheck(loc, sc, NULL, var);
3767 3763
3768 VarDeclaration *v = var->isVarDeclaration(); 3764 VarDeclaration *v = var->isVarDeclaration();
3769 if (v) 3765 if (v)
3770 { 3766 {
3771 if (v->isConst() && type->toBasetype()->ty != Tsarray && v->init) 3767 if (v->isConst() && type->toBasetype()->ty != Tsarray && v->init)