Created on 2025-10-01.00:00:00 last changed 3 days ago
Suggested resolution:
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-10-10 20:53:38 | admin | set | messages: + msg8144 |
2025-10-01 00:00:00 | admin | create |