comparison dmd/scope.c @ 1103:b30fe7e1dbb9

- Updated to DMD frontend 1.041. - Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 12 Mar 2009 20:37:27 +0100
parents d4e95db0e62b
children f99a3b393c03
comparison
equal deleted inserted replaced
1102:ae950bd712d3 1103:b30fe7e1dbb9
255 ident == Id::length && 255 ident == Id::length &&
256 sc->scopesym->isArrayScopeSymbol() && 256 sc->scopesym->isArrayScopeSymbol() &&
257 sc->enclosing && 257 sc->enclosing &&
258 sc->enclosing->search(loc, ident, NULL)) 258 sc->enclosing->search(loc, ident, NULL))
259 { 259 {
260 // WTF ? 260 warning(s->loc, "array 'length' hides other 'length' name in outer scope");
261 if (global.params.warnings)
262 fprintf(stdmsg, "warning - ");
263 error(s->loc, "array 'length' hides other 'length' name in outer scope");
264 } 261 }
265 262
266 //printf("\tfound %s.%s, kind = '%s'\n", s->parent ? s->parent->toChars() : "", s->toChars(), s->kind()); 263 //printf("\tfound %s.%s, kind = '%s'\n", s->parent ? s->parent->toChars() : "", s->toChars(), s->kind());
267 if (pscopesym) 264 if (pscopesym)
268 *pscopesym = sc->scopesym; 265 *pscopesym = sc->scopesym;