![]() Inlined from ‘constexpr void std::vector::_M_insert_dispatch(iterator, _InputIterator, _InputIterator, std::_false_type) ’ at /usr/include/c++/12/bits/stl_vector.h:1779:19, ![]() Inlined from ‘constexpr void std::vector::_M_range_insert(iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) ’ at /usr/include/c++/12/bits/vector.tcc:787:40, Inlined from ‘constexpr std::_Vector_base::pointer std::_Vector_base::_M_allocate(std::size_t) ’ at /usr/include/c++/12/bits/stl_vector.h:375:7, Inlined from ‘constexpr std::_Vector_base::pointer std::_Vector_base::_M_allocate(std::size_t) ’ at /usr/include/c++/12/bits/stl_vector.h:378:33, Inlined from ‘static constexpr _Tp* std::allocator_traits >::allocate(allocator_type&, size_type) ’ at /usr/include/c++/12/bits/alloc_traits.h:464:28, Inlined from ‘constexpr _Tp* std::allocator >::allocate(std::size_t) ’ at /usr/include/c++/12/bits/allocator.h:183:40, In member function ‘_Tp* std::_new_allocator::allocate(size_type, const void*) ’, usr/include/c++/12/bits/stl_algobase.h:431:30: warning: ‘void* _builtin_memmove(void*, const void*, long unsigned int)’ writing 1 or more bytes into a region of size 0 overflows the destination Ĥ31 | _builtin_memmove(_result, _first, sizeof(_Tp) * _Num) The simple code example which presents my situation: #include įor (auto &x : bytes) std::cout (x) s_to_bytes(const S&)’ at invalid_optimization.cpp:16:5: The previous versions of the GCC had not report such warnings. ![]() Last time I've compiled my project by new GCC12 and it gave me warning about bad memmove buffer size. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |