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

2026-11-21


3241. Rephrase paragraph to present only one provision per sentence

Section: 6.8.6.2  [basic.stc.static]     Status: ready     Submitter: ISO/CS     Date: 2026-10-31

C++26 DIS comment **-057

Subclause 6.8.6.2 [basic.stc.static] paragraph 2 should present only one provision per sentence.

Possible resolution [SUPERSEDED]:

If a variable with static storage duration has initialization or a destructor with side effects, it shall not be eliminated even if it appears to be unused, except that a class object or its copy/move may be eliminated as specified in 11.9.6 [class.copy.elision].

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

[ Note: If a variable with static storage duration has initialization or a destructor with side effects, it shall not cannot be eliminated even if it appears to be unused, except that a class object or its copy/move may can be eliminated as specified in 11.9.6 [class.copy.elision]. -- end note]