$ g++-10 -O3 -Werror -c test.cpp
test.cpp: In member function ‘void Container::bar()’:
test.cpp:32:22: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
32 | toolsSetting = PopUnsignedChar();
| ~^~~
test.cpp:32:22: erro
The bug can be made reproducible with [cf. 2]:
#include
#include
#include
extern void* globalData;
class Container
{
public:
std::array militarySettings_;
std::array toolsSettings_;
void bar();
The described compiler bug is reproducible on gentoo [0] (gcc-10.2.0-r5, that is patchlevel 6).
So it is not a debian - specific bug
[0] https://github.com/Return-To-The-Roots/s25client/issues/1327#issuecomment-755180727
Package: gcc-10
Version: 10.2.1-3
Severity: normal
X-Debbugs-Cc: git...@jens-ungerer.de
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* Please compare github-issue-post:
https://github.com/Return-To-The-
Roots/s25client/issues/1327#issueco
4 matches
Mail list logo