This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [ranges] Fix `decltype(auto) ranges::iter_move`
ClosedPublic

Authored by Quuxplusone on Feb 23 2022, 8:54 AM.

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Feb 23 2022, 8:54 AM
Quuxplusone created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptFeb 23 2022, 8:55 AM

The GCC bug mentions Fixed for 10.2 and we use GCC 11 in our CI.

The GCC bug mentions Fixed for 10.2 and we use GCC 11 in our CI.

The bug was a libstdc++ bug.

The GCC bug mentions Fixed for 10.2 and we use GCC 11 in our CI.

Fixed by changing libstdc++, which is irrelevant to libc++ because you're not using the libstdc++ code.

Riiight. Actually use a projection type with non-external linkage, this time.

GCC 11 was still happy with the previous test. Try one basically-not-reduced-at-all from the ranges::min review.

Quuxplusone retitled this revision from [libc++] [ranges] Regression test for decltype(auto) ranges::iter_move to [libc++] [ranges] Fix `decltype(auto) ranges::iter_move`.
Quuxplusone edited the summary of this revision. (Show Details)

I finally hit a reproducing case locally, while writing tests for C++20 move_iterator!

Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 2:53 PM

Fix GCC buildkite warning by removing unused typedefs.

ldionne accepted this revision.Mar 7 2022, 9:09 AM
This revision is now accepted and ready to land.Mar 7 2022, 9:09 AM