CWG Issue 2853 (original) (raw)

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

2025-11-07


2853. Pointer arithmetic with pointer to hypothetical element

Section: 7.6.6 [expr.add]Status: CD7Submitter: Jim XDate: 2024-02-03

[Accepted as a DR at the March, 2024 meeting.]

(From submission#495.)

The phrasing in 7.6.6 [expr.add] bullet 4.2 excludes pointer arithmetic on a pointer pointing to the hypothetical (past-the-end) array element.

Proposed resolution (approved by CWG 2024-02-16):

Change in 7.6.6 [expr.add] bullet 4.2 as follows: