https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107526
--- Comment #1 from Geoffrey <geoffreydgr at icloud dot com> --- And if i compile this case with gcc 11.3, it does not report NPD warning. https://godbolt.org/z/v88PWvs3s seems like a regression problem.