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

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

Messages

Date: 2025-11-06.20:42:54

Proposed resolution (approved by CWG 2025-11-06):

Change in 8.1 [stmt.pre] paragraph 8 as follows:

Let D be any condition or for-range-declaration. In the decl-specifier-seq of a condition or of a for-range-declaration D, including that of any structured-binding-declaration of the condition D, each decl-specifier shall be either a type-specifier or constexpr.
Date: 2025-10-24.22:41:53
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.

History
Date User Action Args
2025-11-06 23:04:52adminsetstatus: tentatively ready -> ready
2025-10-24 22:41:53adminsetmessages: + msg8174
2025-10-24 22:41:53adminsetstatus: open -> tentatively ready
2025-10-01 00:00:00admincreate