> The former makes some degree of sense to me -- a
> 'static' declaration doesn't have external linkage and thus doesn't
> have C linkage -- although I agree that it's weird.
>
>
> So existing practice is mixed, with a bias toward rejecting the code above
> (apparently, MSVC also rejects the code in question). The standard is clear
> that the code is well-formed, but we find that result to be weird. This is
> starting to feel like a case where we badger the committee into fixing the
> standard :)

It is a big bias. EDG is a library and it looks like it supports both
options. The only compiler proper that I know of that doesn't give
static functions language linkage is clang.

> - Doug
>

Cheers,
Rafael
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to