Title
Uninitialized unsigned char values
Status
c++14
Section
7.3.2 [conv.lval]
Submitter
United Kingdom

Created on 2013-09-28.00:00:00 last changed 122 months ago

Messages

Date: 2014-02-15.00:00:00

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

Date: 2013-09-28.00:00:00
N3690 comment GB 2

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.

History
Date User Action Args
2014-11-24 00:00:00adminsetstatus: dr -> c++14
2014-03-03 00:00:00adminsetmessages: + msg4934
2014-03-03 00:00:00adminsetstatus: drafting -> dr
2013-09-28 00:00:00admincreate