This is the mail archive of the
mailing list for the GCC project.
Re: static-after-extern tests vs. mips explicit relocs
On Wed, May 07, 2003 at 07:20:37PM -0300, Alexandre Oliva wrote:
> That said, IIRC, declaring a function as extern then defining it as
> static is ill-formed, isn't it?
Sure enough. 6.2.3:
7 If, within a translation unit, the same identifier appears with
both internal and external linkage, the behavior is undefined.
Richard, I'd be inclined to simply remove the "static"
from each of these declarations, rather than have that
[static_after_extern] tcl check.