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

Ted Kremenek kremenek at apple.com
Tue May 27 10:13:13 PDT 2008


On May 27, 2008, at 10:09 AM, Eli Friedman wrote:

> On Tue, May 27, 2008 at 9:52 AM, Ted Kremenek <kremenek at apple.com>  
> wrote:
>> Interesting.  Can you give an example of this in the case of  
>> FunctionDecls?
>
> int a();
> int b(void) {a(1);}
> int a(int i) {return i;}
> int c(void) {return a(2);}
>
> The resolved "a" in b has type int(), while the one in c has type
> int(int).  Not usually significant, but could matter; for example,
> int(void) is compatible with int(), but not int(int).
>
> -Eli

Okay.  This is what I thought you were referring to, but I wanted to  
make sure.  Thanks!



More information about the cfe-dev mailing list