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

2023-02-07


1010. Address of object with dynamic storage duration in constant expression

Section: 7.7  [expr.const]     Status: CD2     Submitter: Adamczyk     Date: 2009-12-02

[Voted into WP at March, 2010 meeting as part of document N3078.]

7.7 [expr.const] paragraph 2 prohibits the unary & operator and an array-to-pointer conversion on operands with automatic and thread storage duration, but operands with dynamic storage duration are apparently allowed. Both these operations should be allowed only on operands with static storage duration.