[patch] Fix pr16247

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 17 11:17:47 PDT 2013


> 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



More information about the cfe-commits mailing list