This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115a. See for the official list.


1555. Language linkage and function type compatibility

Section:  []     Status: NAD     Submitter: Daniel Krügler     Date: 2012-09-18

Currently function types with different language linkage are not compatible, and [] paragraph 1 makes it undefined behavior to call a function via a type with a different language linkage. These features are generally not enforced by most current implementations (although some do) between functions with C and C++ language linkage. Should these restrictions be relaxed, perhaps as conditionally-supported behavior?

Rationale (October, 2012):

CWG felt that this language design question would be better considered by EWG.

EWG 2022-11-11

Any changes in this area should be pursued via a paper to EWG.