Title
Unclear point that “preceding initialization” must precede
Status
drafting
Section
7.7 [expr.const]
Submitter
Hubert Tong

Created on 2015-10-24.00:00:00 last changed 86 months ago

Messages

Date: 2015-10-24.00:00:00

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

  • a non-volatile glvalue of integral or enumeration type that refers to a complete non-volatile const object with a preceding initialization, initialized with a constant expression, or

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.

History
Date User Action Args
2017-02-06 00:00:00adminsetstatus: open -> drafting
2015-10-24 00:00:00admincreate