[Bug tree-optimization/94335] False positive -Wstringop-overflow warning with -O2
kal.conley at dectris dot com
gcc-bugzilla@gcc.gnu.org
Wed May 20 13:10:56 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335
kal.conley at dectris dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kal.conley at dectris dot com
--- Comment #6 from kal.conley at dectris dot com ---
We are hitting this warning too with:
#include <stdint.h>
#include <vector>
int main() {
std::vector<uint64_t> inputs(2);
std::vector<uint8_t> outputs{inputs.begin(), inputs.end()};
outputs.back() = 1;
return 0;
}
Regards,
Kal
More information about the Gcc-bugs
mailing list