Created on 2012-02-08.00:00:00 last changed 77 months ago
Rationale (February, 2014):
EWG determined that no action should be taken on this issue.
Rationale (October, 2012):
CWG felt that this was more of a language design question and would be better considered by EWG.
Additional note (August, 2012):
It was observed that the proposed narrowing error, unlike in other contexts, cannot be circumvented by adding a cast. The only way to avoid a narrowing error would be to avoid using the brace syntax or to mask the value to an appropriate width. Even the latter approach could conceivably require an implementation to track the maximum number of bits needed by operations applied on top of the masked value, unless the masking were required to be at the top level of the initializer expression.
The definition of a “narrowing conversion” in 11.6.4 [dcl.init.list] paragraph 7 is couched in terms of the type of the target. A conversion to a too-small bit-field should presumably also be categorized as a narrowing conversion. (See also issue 1449.)
|2014-03-03 00:00:00||admin||set||messages: + msg4978|
|2014-03-03 00:00:00||admin||set||status: extension -> nad|
|2012-11-03 00:00:00||admin||set||messages: + msg4193|
|2012-11-03 00:00:00||admin||set||status: open -> extension|
|2012-09-24 00:00:00||admin||set||messages: + msg3953|