https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476

--- Comment #14 from Maciej S. Szmigiero <mail at maciej dot szmigiero.name> ---
> This is not so useful in practice because most compilers don't make extern 
> "C" and extern "C++" differentiate function types (implying calling 
> conventions etc.).

The standard allows different calling conventions for "C" and "C++" language
linkage and that's what matters when writing standard-compliant code - one
shouldn't write to a particular implementation (or implementations).

> > All functions and variables whose names have external linkage and all
> > function types have a language linkage.
> 
> which implies that a function with internal linkage doesn't have a language > 
> linkage, and thus [dcl.link]/7 doesn't apply to it.

Nothing in the above quote says that *only* these specified have a language
linkage, just that these explicitly enumerated sure do.

Reply via email to