This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21
Core Issues List revision 115d.
See http://www.open-std.org/jtc1/sc22/wg21/ for the official
list.
2024-10-26
2622.
Compounding types from function and pointer-to-member types
Section: Clause Annex B [implimits]
Status: C++23
Submitter: Jim X
Date: 2022-09-02
[Accepted as a DR at the November, 2022 meeting.]
Clause Annex B [implimits] bullet 2.3 specifies:
-
Pointer (9.3.4.2 [dcl.ptr]), array
(9.3.4.5 [dcl.array]), and function
(9.3.4.6 [dcl.fct]) declarators (in any combination)
modifying a class, arithmetic, or incomplete type in a declaration
[256].
This omits function types as the to-be-modified type, and ignores
pointer-to-member declarators.
Proposed resolution (approved by CWG 2022-09-23):
Change in Clause Annex B [implimits] bullet 2.3 as follows:
-
Pointer (9.3.4.2 [dcl.ptr]),
pointer-to-member (9.3.4.4 [dcl.mptr]), array
(9.3.4.5 [dcl.array]), and function
(9.3.4.6 [dcl.fct]) declarators (in any combination)
modifying a
class, arithmetic, or incomplete type in a
declaration [256].