https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106409
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC with LTO: Warning: |GCC with LTO:
|argument 1 value ‘18...615’ |-Walloc-size-larger-than
|(SIZE_MAX) exceeds maximum |warning (argument 1 value
|object size with new |‘18...615’ (SIZE_MAX)
| |exceeds maximum object size
| |with new)
--- Comment #9 from Sam James <sjames at gcc dot gnu.org> ---
This is painfully noisy with LTO given how common this pattern is.