https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106409
--- Comment #10 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Sam James from comment #9) > This is painfully noisy with LTO given how common this pattern is. ... even with building gcc itself: ``` /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/gcc/spellcheck.cc: In function ‘get_edit_distance’: /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/gcc/spellcheck.cc:71:61: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 71 | edit_distance_t *v_two_ago = new edit_distance_t[len_s + 1]; | ^ /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/libstdc++-v3/libsupc++/new:133:26: note: in a call to allocation function ‘operator new []’ declared here 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/gcc/spellcheck.cc:72:61: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 72 | edit_distance_t *v_one_ago = new edit_distance_t[len_s + 1]; | ^ /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/libstdc++-v3/libsupc++/new:133:26: note: in a call to allocation function ‘operator new []’ declared here 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/gcc/spellcheck.cc:73:58: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 73 | edit_distance_t *v_next = new edit_distance_t[len_s + 1]; | ^ /var/tmp/portage/sys-devel/gcc-15.0.0_pre20240804/work/gcc-15-20240804/libstdc++-v3/libsupc++/new:133:26: note: in a call to allocation function ‘operator new []’ declared here 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) ```