Created on 2025-10-01.00:00:00 last changed 1 month ago
Proposed resolution (approved by CWG 2025-10-24):
Change in 8.1 [stmt.pre] paragraph 8 as follows:
In the decl-specifier-seq of a condition or of a for-range-declaration, including that of any structured-binding-declaration of the condition, each decl-specifier shall be either a type-specifier or constexpr.The decl-specifier-seq of a for-range-declaration shall not define a class or enumeration.
Subclause 8.1 [stmt.pre] paragraph 8 has the following redundant specification:
In the decl-specifier-seq of a condition or of a for-range-declaration, including that of any structured-binding-declaration of the condition, each decl-specifier shall be either a type-specifier or constexpr. The decl-specifier-seq of a for-range-declaration shall not define a class or enumeration.
The second sentence is redundant, because a type-specifier (as opposed to a defining-type-specifier) cannot define a class or enumeration.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-11-06 23:04:52 | admin | set | status: tentatively ready -> ready |
| 2025-10-24 22:41:53 | admin | set | status: open -> tentatively ready |
| 2025-10-10 20:53:38 | admin | set | messages: + msg8144 |
| 2025-10-01 00:00:00 | admin | create | |