https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105723
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Component|c++ |libstdc++ --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- In file included from /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/algorithm:61, from <source>:1: In function '_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = reverse_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _OIter = reverse_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _UnaryOperation = some_func(const uint8_t* const&)::<lambda(uint8_t)>]', inlined from 'void some_func(const uint8_t* const&)' at <source>:15:23: /opt/compiler-explorer/gcc-12.1.0/include/c++/12.1.0/bits/stl_algo.h:4263:19: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 4263 | *__result = __unary_op(*__first); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ compilation terminated due to -Wfatal-errors. cc1plus: some warnings being treated as errors Compiler returned: 1