Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-12-20


2643. Completing a pointer to array of unknown bound

Section:6.9.1  [basic.types.general]    Status:C++23    Submitter:US    Date:2022-11-03

P2720R0 comment US 10-039

[Accepted as a DR at the November, 2022 meeting.]

Subclause 6.9.1 [basic.types.general] paragraph 6 specifies:

... The type of a pointer to array of unknown bound, or of a type definedby atypedef declaration to be an array of unknown bound,cannot be completed.

This is misleading; such a type is already complete.

Proposed resolution:

Change in 6.9.1 [basic.types.general] paragraph 6 as follows:

...[ Note: The type of a pointeror referenceto array of unknown boundpermanently points to or refers to an incompletetype. An array of unknown bound, or of a typedefinednamed by atypedefdeclarationto be an array of unknown bound,permanently refers to an incomplete type. In either case, thearray type cannot be completed.-- end note ]



[8]ページ先頭

©2009-2026 Movatter.jp