https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Full testcase:
#include <cstdint>
#include <iterator>
#include <type_traits>
#include <vector>
#include <cstring>
#define SZ 4096
std::vector<int> foo() {
auto result = std::vector<int>(SZ);
int *ptr = result.data();
for (std::size_t n = 0; n < SZ; ++n) {
ptr[n] = static_cast<int>( n );
}
return result;
}
