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

--- Comment #5 from gcc-bugs at marehr dot dialup.fu-berlin.de ---
Thank you for the fix, but the following code does not compile any more:

```c++
#include <list>
#include <ranges>

int main()
{
  std::list<char> list;

  constexpr auto drop = []<std::ranges::viewable_range urng_t>(urng_t &&
urange, size_t drop_size)
  {
    // does not work:
    return std::forward<urng_t>(urange) | std::views::drop(drop_size);

    // does work:
    // return std::forward<urng_t>(urange) | std::views::drop(0);
  };
  drop(list, 0);
}
```

Should I open a new issue?

Reply via email to