Title
Rephrase sentence to avoid "shall"
Status
ready
Section
7.6.19 [expr.assign]
Submitter
ISO/CS

Created on 2026-10-31.00:00:00 last changed 1 week ago

Messages

Date: 2026-11-19.11:29:33

Proposed resolution (approved by CWG 2026-11-19):

Change in 7.6.19 [expr.assign] paragraph 7 as follows:

If the value being stored in an object is read via another object that overlaps in any way the storage of the first object, then and
  • the overlap shall be is not exact and or
  • the two objects shall do not have the same type,
otherwise the behavior is undefined.
Date: 2026-11-19.11:29:33

Possible resolution [SUPERSEDED]:

Change in 7.6.19 [expr.assign] paragraph 7 as follows:

If the value being stored in an object is read via another object that overlaps in any way the storage of the first object, then the behavior is undefined unless the overlap shall be is exact and the two objects shall have the same type, otherwise the behavior is undefined.
Date: 2026-10-31.00:00:00

C++26 DIS comment **-066

Subclause 7.6.19 [expr.assign] paragraph 7 uses "shall" twice in connection with undefined behavior, which is not in harmony with the rest of the core language phraseology.

History
Date User Action Args
2026-11-19 11:29:33adminsetstatus: open -> ready
2026-11-19 09:19:50adminsetmessages: + msg8719
2026-11-19 09:19:50adminsetmessages: + msg8718
2026-10-31 00:00:00admincreate