Created on 2016-07-06.00:00:00 last changed 48 months ago
[Voted into the WP at the July, 2017 meeting.]
Proposed resolution (April, 2017):
Change 6.8.4 [basic.compound] bullet 4.2 as follows:
Two objects a and b are pointer-interconvertible if:
they are the same object, or
one is a
standard-layoutunion object and the other is a non-static data member of that object (11.5 [class.union]), or...
According to 11.5 [class.union] paragraph 2,
[Note: A union object and its non-static data members are pointer-interconvertible (6.8.4 [basic.compound], 7.6.1.9 [expr.static.cast]). As a consequence, all non-static data members of a union object have the same address. —end note]
However, the normative wording now only requires this for standard-layout unions.
History | |||
---|---|---|---|
Date | User | Action | Args |
2020-12-15 00:00:00 | admin | set | status: drwp -> cd5 |
2018-02-27 00:00:00 | admin | set | messages: + msg6130 |
2018-02-27 00:00:00 | admin | set | messages: + msg6129 |
2016-07-06 00:00:00 | admin | create |