Created on 2025-08-11.00:00:00 last changed 1 month ago
Proposed resolution (approved by CWG 2025-11-05):
Change in 12.2.2.2.3 [over.call.object] paragraph 2 as follows:
..., a surrogate call function with the unique name call-function
and having a declaration of the form
R call-function ( conversion-type-id F, P1 a1, ... , Pn an) { return F (a1, ..., an); } ;
is also considered as a candidate function.
[ Note: If a surrogate call function is selected by overload
resolution, the behavior is as described in
12.4.4 [over.call]. -- end note ] Similarly,...
(From submission #747.)
Subclause 12.2.2.2.3 [over.call.object] paragraph 2 defines the surrogate call function has having a function body. However, this body will never be evaluated, because 12.4.4 [over.call] paragraph 1 specifies the behavior when a surrogate call function is selected by overload resolution.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-11-06 02:49:47 | admin | set | status: open -> ready |
| 2025-08-15 21:53:59 | admin | set | messages: + msg8077 |
| 2025-08-11 00:00:00 | admin | create | |