Title
Address of object with dynamic storage duration in constant expression
Status
cd2
Section
7.7 [expr.const]
Submitter
Adamczyk

Created on 2009-12-02.00:00:00 last changed 139 months ago

Messages

Date: 2010-03-15.00:00:00

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

Date: 2009-12-02.00:00:00

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.

History
Date User Action Args
2010-08-23 00:00:00adminsetmessages: + msg2937
2009-12-02 00:00:00admincreate