Re: lookup_name

2009-04-07 Thread Eduardo Cruz
> I assume you mean the function in the C frontend, in c-decl.c. thats correct! thanks a lot! 2009/4/7 Ian Lance Taylor : > Eduardo Cruz writes: > >> does the function lookup_name distinguish the identifier between >> different contexts? > > I assume you mean the function in the C frontend, in c

Re: lookup_name

2009-04-06 Thread Ian Lance Taylor
Eduardo Cruz writes: > does the function lookup_name distinguish the identifier between > different contexts? I assume you mean the function in the C frontend, in c-decl.c. That function looks up the name in the current scope, so, yes, it will return different DECL nodes when appropriate. Ian