https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
--- Comment #17 from Barnabás Pőcze <pobrn at protonmail dot com> --- The simple test case with std::span still triggers the warning: https://gcc.godbolt.org/z/43cKxdqr3. I feel that without deeper code analysis such a warning will generate too many false positives and people will simply turn it off.