В Fri, 9 May 2025 11:09:22 +1000 Stephen Wade <stephematic...@gmail.com> пишет:
> inlined from ‘std::vector<double> literanger::adjust_pvalues(const > std::vector<double>&)’ at ../src/literanger/utility_math.h:99:48: > /usr/include/c++/13/bits/stl_algobase.h:437:30: warning: ‘void* > __builtin_memmove(void*, const void*, long unsigned int)’ writing > between 9 and 9223372036854775807 bytes into a region of size 8 > overflows the destination [-Wstringop-overflow=] > 437 | __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); The same problem (different reproducer, slightly different warning, but same place in the standard library and similar circumstances) has been reported as a false positive in GCC, Bug 109717: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109717 There are comments by GCC developers acknowledging that the overflow detection may "detect" overflows in code paths that cannot be taken, but they don't see an easy way to fix the warnings on the compiler side. -- Best regards, Ivan ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel