https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120282
Bug ID: 120282 Summary: -Warray-bounds triggered incorrectly Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dominick.allen1989 at gmail dot com Target Milestone: --- Created attachment 61426 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61426&action=edit preprocessed file after cvise reduction and gcc info I could not make a minimal replication of this without putting my original code through cvise. I find the cvise output hard to understand, so I am not sure how valuable it is. The bug is triggered with `-std=c++20 -O3 -pthread -Werror=array-bounds`, but adding `--coverage -fsanitize=address,undefined` makes it go away. In the original code. I can provide additional context if desired, but it is not a minimal case. System information: gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221 sys-devel/gcc-14.2.1_p20241221:14::gentoo USE="cet (cxx) (default-stack-clash-protection) (default-znow) fortran jit (multilib) nls openmp (pie) sanitize ssp zstd -ada (-custom-cflags) -d -debug -doc (-fixed-point) -go -graphite -hardened (-ieee-long-double) (-libssp) -lto -modula2 -objc -objc++ -objc-gc (-pch) -pgo -rust -systemtap -test (-time64) -valgrind -vanilla -vtv"