Re: [Rd] array-bound error with GCC 13/14

2025-05-13 Thread Kurt Hornik
> Stephen Wade writes: Thanks to everyone so far. Indeed, packages GenomeAdmixR SpatialKWD literanger all give the same include/c++/14/bits/stl_algobase.h:452:30 -Warray-bounds= warning for the GCC 14.2.0 compilers used for Debian testing and windows, but not for GCC 15.1.0 used for Fedor

Re: [Rd] array-bound error with GCC 13/14

2025-05-12 Thread Stephen Wade
Thanks, I agree with the course of action, especially given literanger seems to be the only casualty. I'm just making note that the policy doesn't necessarily generate the outcome we want. No policy ever will! I 100% appreciate CRAN volunteers' efforts. In this case, the compiler is generating a f

Re: [Rd] array-bound error with GCC 13/14

2025-05-12 Thread Kevin Ushey
Hi Stephen, I still believe your best option is still to just submit a version of your package that includes a workaround for this compiler issue. You could, in theory, try to contact the CRAN maintainers at c...@r-project.org, and either (1) request an exception for your package, or (2) request

Re: [Rd] array-bound error with GCC 13/14

2025-05-12 Thread Stephen Wade
After (a lot) more work, including looking for MWE (see https://godbolt.org/z/38nnaEcrf), I am confident this is a bug which has already been resolved: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111415. The bug only occurs when optimisation is enabled (-O1 to -O3 at least), on GCC 12.4, 13.1--13

Re: [Rd] array-bound error with GCC 13/14

2025-05-12 Thread Tomas Kalibera
On 5/9/25 03:09, Stephen Wade wrote: The literanger package is no longer passing on CRAN (https://CRAN.R-project.org/package=literanger) due to array-bound warnings in GCC 13.3 and 14.2 (more details below). This _looks_ to me like one of either a) a compiler bug, b) a false positive, or c) (v

Re: [Rd] array-bound error with GCC 13/14

2025-05-09 Thread Olivier Benz via R-devel
> On 9 May 2025, at 19:29, Kevin Ushey wrote: > > Hopefully a member of the CRAN team will tell me I'm wrong, but I > think whether or not there is a compiler bug is ultimately irrelevant > -- packages on CRAN must compile cleanly even with potentially-buggy > development versions of compilers.

Re: [Rd] array-bound error with GCC 13/14

2025-05-09 Thread Kevin Ushey
Hopefully a member of the CRAN team will tell me I'm wrong, but I think whether or not there is a compiler bug is ultimately irrelevant -- packages on CRAN must compile cleanly even with potentially-buggy development versions of compilers. So, whether or not there is a bug in gcc is moot -- you'll

Re: [Rd] array-bound error with GCC 13/14

2025-05-09 Thread Ivan Krylov via R-devel
В Fri, 9 May 2025 11:09:22 +1000 Stephen Wade пишет: > inlined from ‘std::vector literanger::adjust_pvalues(const > std::vector&)’ 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