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

Eli Friedman eli.friedman at gmail.com
Tue May 27 10:09:58 PDT 2008


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



More information about the cfe-dev mailing list