https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110051
Bug ID: 110051
Summary: error: writing 1 byte into a region of size 0
Product: gcc
Version: 13.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: pkurash at cern dot ch
Target Milestone: ---
Created attachment 55220
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55220&action=edit
build log
Hello,
I am compiling some software with use of GCC, there are many errors which are
not dependent on the code being compiled, since the logs seem to point at the
errors in the files within /usr directory:
/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:398:17:
error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
398 | { *__to = *__from; }
| ~~~~~~^~~~~~~~~
I use Gentoo Linux, my current gcc version is 13.1.1_p20230520 which I
installed with the system package manager (portage).
I also attach a full log of compilation of a package (I need to build multiple
packages in a chain, when I skip this one there arise similar errors at
compilation process of subsequent packages).