This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 120b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2026-07-26


3210. constexpr for empty destructuring expansion statements

Section: 8.7  [stmt.expand]     Status: open     Submitter: Geng Cheng     Date: 2026-05-19

(From submission #908.)

After adopting issue 3048, it is unclear when the constexpr keyword in the expansion defining range should be present.

Suggested resolution:

Change in 8.7 [stmt.expand] bullet 5.3 as follows:

... The keyword constexpr is present in the declaration of range or the structured-binding-declaration of u0, u1, ..., uN-1, respectively, if and only if constexpr is one of the decl-specifiers of the decl-specifier-seq of the for-range-declaration.