[cfe-dev] [PATCH] Function redeclaration and PR2360

Argiris Kirtzidis akyrtzi at gmail.com
Tue May 27 09:17:52 PDT 2008

Do you guys disagree with the suggestion here ? : 
I was going to implement that one. The result will be that DeclRefExprs 
that refer to the same function will always refer to the same 
FunctionDecl as well.


Ted Kremenek wrote:
> On May 27, 2008, at 8:55 AM, Eli Friedman wrote:
>> On Tue, May 27, 2008 at 8:44 AM, Ted Kremenek <kremenek at apple.com> 
>> wrote:
>>> One caveat: if a client inspects two separate DeclRefExprs, each one
>>> referring to a different FunctionDecl for the same function, is there a
>>> good, standard way to compare if they refer to the same function?
>> I think we'd need some sort of map for global names to implement this;
>> two completely unrelated FunctionDecls can refer to the same function
>> if they're in disjoint scopes.
>> -Eli
> Yes, that makes sense.

More information about the cfe-dev mailing list