Mercurial > projects > ldc
comparison dmd2/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 | f04dde6e882c |
children | 356e65836fb5 |
comparison
equal
deleted
inserted
replaced
840:a125ada7fd95 | 841:783f67fbdf4a |
---|---|
3827 type = type->semantic(loc, sc); | 3827 type = type->semantic(loc, sc); |
3828 } | 3828 } |
3829 #endif | 3829 #endif |
3830 } | 3830 } |
3831 | 3831 |
3832 // LDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 | |
3833 // check access to VarDeclaration | |
3834 accessCheck(loc, sc, NULL, var); | |
3835 | |
3836 VarDeclaration *v = var->isVarDeclaration(); | 3832 VarDeclaration *v = var->isVarDeclaration(); |
3837 if (v) | 3833 if (v) |
3838 { | 3834 { |
3839 #if 0 | 3835 #if 0 |
3840 if ((v->isConst() || v->isInvariant()) && | 3836 if ((v->isConst() || v->isInvariant()) && |