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

Argiris Kirtzidis akyrtzi at gmail.com
Tue May 27 11:19:31 PDT 2008


Eli Friedman wrote:
> This means that references to a function before a
> redeclaration refer to the old declaration, and references to a
> function after a redeclaration refer to the new declaration.

How about these cases:

int a(int); // #1
int a();    // #2
int b(void) {a();} // should refer to #2 or is more accurate to refer to 
#1 ?


And:

int a(int x = 5); // #1
int a(int x);  // #2
int b(void) {a();} // Shouldn't it refer to #1 ?


-Argiris






More information about the cfe-dev mailing list