Variables having constant initialization in one translation unit but not another can introduce differences in lambda capture and issues where dynamic initialization attempts to write to read-only memory associated with a const-qualified variable.
Proposed change:
Address CWG2242 by specifying that cases with the described issues have ODR violations.
Variables having constant initialization in one translation unit but not another can introduce differences in lambda capture and issues where dynamic initialization attempts to write to read-only memory associated with a
const
-qualified variable.Proposed change:
Address CWG2242 by specifying that cases with the described issues have ODR violations.