7.1.1.7
The linkages implied by successive declarations for a given entity shall agree. That is, within a given scope, each
declaration declaring the same object name or the same overloading of a function name shall imply the same linkage.
Each function in a given set of overloaded functions can have a different linkage, however. [ Example:
static char * f (); / / f() has internal linkage
char * f () / / f() still has internal linkage
{ /∗ . . . ∗/ }
char * g (); / / g() has external linkage
static char * g () / / error: inconsistent linkage
{ /∗ . . . ∗/ }
void h ();
inline void h (); / / external linkage
inline void l ();
void l (); / / external linkage
inline void m ();
extern void m (); / / external linkage
static void n ();
inline void n (); / / internal linkage
Социальные закладки