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

2024-11-11


2186. Unclear point that “preceding initialization” must precede

Section: 7.7  [expr.const]     Status: C++20     Submitter: Hubert Tong     Date: 2015-10-24

[ Resolved by P0595R2, adopted in November, 2018. ]

Similar to the concern of issue 2166, the requirement of 7.7 [expr.const] bullet 2.7.1 for

does not specify the point at which the determination of “preceding initialization” is made: is it at the point at which the reference to the variable appears lexically, or is it the point at which the outermost constant evaluation occurs? There is implementation divergence on this point.

Additional notes (July, 2024)

The words in question were removed by P0595R2 (std::is_constant_evaluated()), adopted in November, 2018.