“is not required” == undefined behavior?
The wording has changed in various editions of the C++ standard, and in the recent draft cited in the question. (See my comments on the question for the gory details.) C++11 says: Other pointer comparisons are unspecified. C++17 says: Otherwise, neither pointer compares greater than the other. The latest draft, cited in the question, says: … Read more