Created on 2025-11-21.00:00:00 last changed 7 days ago
Proposed resolution (approved by CWG 2025-12-05):
Change in 8.1 [stmt.pre] paragraph 1 as follows:
condition :
expression
condition-declaration
condition-declaration :
attribute-specifier-seqopt decl-specifier-seq declarator brace-or-equal-initializer
structured-binding-declaration initializer
Change in 8.1 [stmt.pre] paragraph 7 as follows:
If a condition can be syntactically resolved as either anexpressionexpression or adeclarationcondition-declaration, it is interpreted as the latter.
The disambiguation rule in 8.1 [stmt.pre] paragraph 7 is unclear, because "declaration" is not a (uniquely defined) grammatical category.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-12-05 21:43:30 | admin | set | status: open -> tentatively ready |
| 2025-11-21 21:38:05 | admin | set | messages: + msg8409 |
| 2025-11-21 00:00:00 | admin | create | |