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 fun

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

lookup_name

2009-04-06 Thread Eduardo Cruz
does the function lookup_name distinguish the identifier between different contexts? for example void func1() { int foo; } void func2() { int foo; } if I call lookup_name with the foo ident-tree while parsing these functions, will it return different decl-tree nodes? thanks

[gomp] objcp/objcp-decl.c:93: error: too many arguments to function 'lookup_name'

2005-10-13 Thread Christian Joensson
ecl.o ../../gcc.gomp/gcc/objcp/objcp-decl.c: In function 'objcp_lookup_name': ../../gcc.gomp/gcc/objcp/objcp-decl.c:93: error: too many arguments to function 'lookup_name' make[3]: *** [objcp/objcp-decl.o] Error 1 make[3]: Leaving directory `/usr/local/src/branch/objdir.gomp/gcc' mak