Mercurial > projects > ldc
diff dmd/dsymbol.c @ 626:e83ba4ae4878
Fix import visibility bugs 313 and 314.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 01 Oct 2008 19:16:10 +0200 |
parents | 44f08170f4ef |
children | 1714836f2c0b |
line wrap: on
line diff
--- a/dmd/dsymbol.c Wed Oct 01 19:15:17 2008 +0200 +++ b/dmd/dsymbol.c Wed Oct 01 19:16:10 2008 +0200 @@ -646,6 +646,11 @@ // Look in symbols declared in this module Dsymbol *s = symtab ? symtab->lookup(ident) : NULL; + + // hide private nonlocal symbols + if (flags & 1 && s && s->prot() == PROTprivate) + s = NULL; + if (s) { //printf("\ts = '%s.%s'\n",toChars(),s->toChars());