Title
Apply restriction inside for-range-declaration
Status
open
Section
8.1 [stmt.pre]
Submitter
US

Created on 2025-10-01.00:00:00 last changed 1 week ago

Messages

Date: 2025-10-01.00:00:00
N5028 comment USĀ 34-067

The restriction in 8.1 [stmt.pre] paragraph 1 should also apply to any structured-binding-declaration in a for-range-declaration.

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 or for-range-declaration, each decl-specifier shall be either a type-specifier or constexpr.
History
Date User Action Args
2025-10-01 00:00:00admincreate