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

2024-03-20


1787. Uninitialized unsigned char values

Section: 7.3.2  [conv.lval]     Status: C++14     Submitter: United Kingdom     Date: 2013-09-28

N3690 comment GB 2

[Moved to DR at the February, 2014 meeting as part of document N3914.]

The current wording of 7.3.2 [conv.lval] gives the result of fetching an uninitialized unsigned character an unspecified value, which is then stable: assigned to a different variable, it will be the same throughout the lifetime of that variable. It would be more helpful to optimizers for the unspecified value to be viral, so that fetching from the second variable would also yield an unspecified result, not necessarily the same each time.