Title
Language linkage and function type compatibility
Status
nad
Section
7.6.1.3 [expr.call]
Submitter
Daniel Krügler

Created on 2012-09-18.00:00:00 last changed 17 months ago

Messages

Date: 2012-10-15.00:00:00

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.

Date: 2022-11-20.07:54:16

Currently function types with different language linkage are not compatible, and 7.6.1.3 [expr.call] 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?

History
Date User Action Args
2022-11-23 23:14:34adminsetstatus: extension -> nad
2012-11-03 00:00:00adminsetmessages: + msg4187
2012-11-03 00:00:00adminsetstatus: open -> extension
2012-09-18 00:00:00admincreate