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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So you can reproduce it easier without even vector or array:
```
#include <generator>
using namespace std;
template <ranges::input_range... Ranges>
[[nodiscard]] auto
concat(Ranges&&... ranges) -> generator<double, double>
{
        (co_yield ranges::elements_of(ranges), ...);
}
auto
main() -> int
{
        int const numbers1[] = {4, 8, 15, 16, 23, 42};
        double const numbers2[] = {4, 8, 15, 16, 23, 42};
        return *concat(numbers1, numbers2).begin();
}

```

Reply via email to