https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96113

            Bug ID: 96113
           Summary: std::vector | std::views::drop_while |
                    std::views::reverse, cbegin does not work
           Product: gcc
           Version: 10.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
  Target Milestone: ---

Hi gcc-team,

the following code does not compile:

```
#include <ranges>
#include <vector>

int main()
{
    std::vector<int> text1{};
    auto && view = text1
                 | std::views::drop_while([](auto const &){ return false; })
                 | std::views::reverse;

    std::ranges::cbegin(view);
}
```

with `g++-10 -std=c++2a` (see https://godbolt.org/z/adxYy-)

Thank you!

Reply via email to