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

2026-02-06


3136. Constant expressions of type void

Section: 7.7  [expr.const]     Status: tentatively ready     Submitter: Lénárd Szolnoki     Date: 2025-11-23

(From submission #821.)

Subclause 7.7 [expr.const] bullet 22.2 does not handle expressions of type void or of scalar types.

Proposed resolution (approved by CWG 2026-02-06):

Change in 7.7 [expr.const] bullet 22.2 as follows:

A constant expression is either

Drafting note: A prvalue of object type always has a result object; see 7.2.1 [basic.lval] paragraph 5.