Mercurial > projects > ldc
comparison dmd/expression.c @ 846:bc982f1ad106
Merged DMD 1.037 frontend
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 13:15:31 +0100 |
parents | 783f67fbdf4a |
children | 330f999ade44 |
comparison
equal
deleted
inserted
replaced
845:d128381e086e | 846:bc982f1ad106 |
---|---|
5065 return e; | 5065 return e; |
5066 } | 5066 } |
5067 | 5067 |
5068 if (eright->op == TOKimport) // also used for template alias's | 5068 if (eright->op == TOKimport) // also used for template alias's |
5069 { | 5069 { |
5070 Dsymbol *s; | |
5071 ScopeExp *ie = (ScopeExp *)eright; | 5070 ScopeExp *ie = (ScopeExp *)eright; |
5072 | 5071 |
5073 s = ie->sds->search(loc, ident, 0); | 5072 /* Disable access to another module's private imports. |
5073 * The check for 'is sds our current module' is because | |
5074 * the current module should have access to its own imports. | |
5075 */ | |
5076 Dsymbol *s = ie->sds->search(loc, ident, | |
5077 (ie->sds->isModule() && ie->sds != sc->module) ? 1 : 0); | |
5074 if (s) | 5078 if (s) |
5075 { | 5079 { |
5076 s = s->toAlias(); | 5080 s = s->toAlias(); |
5077 checkDeprecated(sc, s); | 5081 checkDeprecated(sc, s); |
5078 | 5082 |