Created on 2026-10-31.00:00:00 last changed 1 week ago
Proposed resolution (approved by CWG 2026-11-19):
[ Note: If a variable with static storage duration has initialization or a destructor with side effects, itshall notcannot be eliminated even if it appears to be unused, except that a class object or its copy/movemaycan be eliminated as specified in 11.9.6 [class.copy.elision]. -- end note]
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].
C++26 DIS comment **-057
Subclause 6.8.6.2 [basic.stc.static] paragraph 2 should present only one provision per sentence.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-11-19 11:23:11 | admin | set | status: open -> ready |
| 2026-11-19 09:19:50 | admin | set | messages: + msg8716 |
| 2026-11-19 09:19:50 | admin | set | messages: + msg8715 |
| 2026-10-31 00:00:00 | admin | create | |