Created on 2012-08-14.00:00:00 last changed 141 months ago
[Moved to DR at the April, 2013 meeting.]
Proposed resolution (October, 2012):
Change 7.6.19 [expr.assign] paragraph 9 as follows:
The meaning of x={v}, where T is the scalar type of the expression x, is that ofx=T(v) except that no narrowing conversion (9.5.5 [dcl.init.list]) is allowedx=T{v}. The meaning of x={} isx=T()x=T{}.
According to 7.6.19 [expr.assign] paragraph 9,
The meaning of x={v}, where T is the scalar type of the expression x, is that of x=T(v) except that no narrowing conversion (9.5.5 [dcl.init.list]) is allowed. The meaning of x={} is x=T().
This definition adds a gratuitous C-style cast to the right-hand operand, inadvertently allowing such things as base-to-derived conversions and circumvention of access checking.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
| 2013-10-14 00:00:00 | admin | set | status: dr -> drwp |
| 2013-05-03 00:00:00 | admin | set | messages: + msg4392 |
| 2013-05-03 00:00:00 | admin | set | status: ready -> dr |
| 2012-11-03 00:00:00 | admin | set | messages: + msg4055 |
| 2012-11-03 00:00:00 | admin | set | status: open -> ready |
| 2012-08-14 00:00:00 | admin | create | |