D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21810 - Check for sortedness in `merge` must not use `==`
Summary: Check for sortedness in `merge` must not use `==`
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 minor
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-04-08 09:39 UTC by arne.ludwig
Modified: 2021-04-14 15:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description arne.ludwig 2021-04-08 09:39:49 UTC
Checking sortedness according to a given predicate must not use `==` operator
because it may not be in accordance with the predicate.

In `std.algorithm.sorting.merge` this is happening which produces an unjustified error in some cases.
Comment 1 Dlang Bot 2021-04-08 14:25:33 UTC
@a-ludi updated dlang/phobos pull request #7928 "Check for sortedness must not use `==`" fixing this issue:

- Fix issue 21810: Check for sortedness must not use `==`

https://github.com/dlang/phobos/pull/7928
Comment 2 Dlang Bot 2021-04-14 15:58:22 UTC
dlang/phobos pull request #7928 "Check for sortedness must not use `==`" was merged into master:

- b13306c667cf818aa8ed624777fbfbfede5d0c1f by Arne:
  Fix issue 21810: Check for sortedness must not use `==`

https://github.com/dlang/phobos/pull/7928