[Bug libstdc++/96113] New: std::vector | std::views::drop_while | std::views::reverse, cbegin does not work
gcc-bugs at marehr dot dialup.fu-berlin.de
gcc-bugzilla@gcc.gnu.org
Wed Jul 8 11:44:12 GMT 2020
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!
More information about the Gcc-bugs
mailing list