comparison 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
comparison
equal deleted inserted replaced
625:7e0a766fef47 626:e83ba4ae4878
644 { 644 {
645 //printf("%s->ScopeDsymbol::search(ident='%s', flags=x%x)\n", toChars(), ident->toChars(), flags); 645 //printf("%s->ScopeDsymbol::search(ident='%s', flags=x%x)\n", toChars(), ident->toChars(), flags);
646 646
647 // Look in symbols declared in this module 647 // Look in symbols declared in this module
648 Dsymbol *s = symtab ? symtab->lookup(ident) : NULL; 648 Dsymbol *s = symtab ? symtab->lookup(ident) : NULL;
649
650 // hide private nonlocal symbols
651 if (flags & 1 && s && s->prot() == PROTprivate)
652 s = NULL;
653
649 if (s) 654 if (s)
650 { 655 {
651 //printf("\ts = '%s.%s'\n",toChars(),s->toChars()); 656 //printf("\ts = '%s.%s'\n",toChars(),s->toChars());
652 } 657 }
653 else if (imports) 658 else if (imports)