Created on 2022-11-03.00:00:00 last changed 17 months ago
Proposed resolution (approved by CWG 2022-11-08):
Change in 7.7 [expr.const] paragraph 3 as follows:
A variable is potentially-constant if it is constexpr or it has reference or non-volatile const-qualified integral or enumeration type.
Change in 7.7 [expr.const] paragraph 16.7 as follows:
A function or variable is needed for constant evaluation if it is:
- a constexpr function that is named by an expression (6.3) that is potentially constant evaluated, or
- a potentially-constant variable named by a potentially constant evaluated expression
that is either a constexpr variable or is of non-volatile const-qualified integral type or of reference type.
[Accepted as a DR at the November, 2022 meeting.]
The criteria for a variable to be needed for constant evaluation are inconsistent with those for it to be usable in constant expressions (/4).
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-07-16 13:00:43 | admin | set | status: open -> c++23 |
2023-07-16 13:00:43 | admin | set | status: drwp -> open |
2023-02-18 18:43:04 | admin | set | status: dr -> drwp |
2022-11-25 05:14:04 | admin | set | status: nb -> dr |
2022-11-08 20:14:51 | admin | set | messages: + msg6984 |
2022-11-08 20:13:50 | admin | set | status: review -> nb |
2022-11-08 20:13:50 | admin | set | status: review -> review |
2022-11-08 20:13:50 | admin | set | status: review -> review |
2022-11-08 20:13:50 | admin | set | status: review -> review |
2022-11-08 20:13:50 | admin | set | status: review -> review |
2022-11-08 20:13:50 | admin | set | status: review -> review |
2022-11-08 07:28:43 | admin | set | status: nb -> review |
2022-11-08 07:28:43 | admin | set | status: nb -> nb |
2022-11-08 07:28:43 | admin | set | status: nb -> nb |
2022-11-08 07:28:43 | admin | set | status: open -> nb |
2022-11-08 07:28:43 | admin | set | status: open -> open |
2022-11-03 00:00:00 | admin | create |