Created on 2023-03-12.00:00:00 last changed 8 months ago
Proposed resolution (approved by CWG 2023-06-16):
Change in 7.6.9 [expr.rel] paragraph 4 and paragraph 5 as follows:
The result of comparing unequal pointers to objects [ Footnote: ... ] is defined in terms of a partial order consistent with the following rules: ...
[Note 1: A relational operator applied to unequal function pointers
or to unequal pointers to voidyields an unspecified result. A pointer value of type "pointer to cv void" can point to an object (6.8.4 [basic.compound]). -- end note]
[Accepted as a DR at the November, 2023 meeting.]
(From editorial issue 6173.)
Subclause 7.6.9 [expr.rel] paragraph 4 and paragraph 5 specify:
The result of comparing unequal pointers to objects [ Footnote: ] is defined in terms of a partial order consistent with the following rules: ...
[Note 1: A relational operator applied to unequal function pointers or to unequal pointers to void yields an unspecified result. -- end note]
Comparing pointers to objects that are stored in a variable of type "pointer to void" should be fine.
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-04-05 21:43:46 | admin | set | status: dr -> drwp |
2023-12-19 10:15:28 | admin | set | status: ready -> dr |
2023-11-10 14:27:11 | admin | set | messages: + msg7510 |
2023-11-10 14:27:11 | admin | set | status: tentatively ready -> ready |
2023-06-16 16:50:06 | admin | set | status: open -> tentatively ready |
2023-03-12 00:00:00 | admin | create |