Title
Language linkage and function type compatibility
Status
extension
Section
8.2.2 [expr.call]
Submitter
Daniel Kr├╝gler

Created on 2012-09-18.00:00:00 last changed 93 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.

Date: 2016-02-15.00:00:00

Currently function types with different language linkage are not compatible, and 8.2.2 [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
2012-11-03 00:00:00adminsetmessages: + msg4187
2012-11-03 00:00:00adminsetstatus: open -> extension
2012-09-18 00:00:00admincreate