> 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
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
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
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