Bug 23132 – "cannot access frame pointer" comparing two ranges for equality from v2.099.0

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-05-21T18:05:00Z
Last change time
2022-07-09T16:00:33Z
Keywords
pull
Assigned to
No Owner
Creator
Tomáš Chaloupka

Comments

Comment #0 by chalucha — 2022-05-21T18:05:00Z
My library unittest fails with: ```D /home/tomas/dlang/dmd-2.099.0/linux/bin64/../../src/phobos/std/algorithm/comparison.d(1026,30): Error: cannot access frame pointer of `during.tests.api.__unittest_L125_C1.MapResult!(__lambda8, Uring).MapResult` /home/tomas/dlang/dmd-2.099.0/linux/bin64/../../src/phobos/std/algorithm/comparison.d(1026,29): Error: none of the overloads of template `std.algorithm.comparison.equal!().equalLoop` are callable using argument types `!()(MapResult!(__lambda8, Uring), Result)` /home/tomas/dlang/dmd-2.099.0/linux/bin64/../../src/phobos/std/algorithm/comparison.d(1030,18): Candidate is: `equalLoop(Rs...)(Rs rs)` tests/api.d(147,43): Error: template instance `std.algorithm.comparison.equal!().equal!(MapResult!(__lambda8, Uring), Result)` error instantiating ``` Failing code is here: https://github.com/tchaloupka/during/blob/9fa519b3a4192486093691aa2e70809773e9426b/tests/api.d#L147 This was ok until v2.098.1. I've tried to bisect this using [Digger](https://github.com/CyberShadow/Digger) and it resulted with https://github.com/dlang/phobos/pull/8284 Which seems to be relevant.
Comment #1 by dlang-bot — 2022-05-21T18:11:51Z
@tchaloupka created dlang/phobos pull request #8467 "Fix 23132 - Avoid ranges copy when compared for equality" fixing this issue: - Fix 23132 - Avoid ranges copy when compared for equality https://github.com/dlang/phobos/pull/8467
Comment #2 by dlang-bot — 2022-06-21T15:09:55Z
dlang/phobos pull request #8467 "Fix 23132 - Avoid ranges copy when compared for equality" was merged into stable: - b2edbc4bae14a518896c28304ec4c3b2a9d3c19f by Tomáš Chaloupka: Fix 23132 - Avoid ranges copy when compared for equality https://github.com/dlang/phobos/pull/8467
Comment #3 by dlang-bot — 2022-07-09T16:00:33Z
dlang/phobos pull request #8503 "merge stable" was merged into master: - 9ac9d359acf936c7168a6467321d5e4c358a8c9a by Tomáš Chaloupka: Fix 23132 - Avoid ranges copy when compared for equality https://github.com/dlang/phobos/pull/8503