https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99340
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 9 warns as well. I think this was a false negative which is now fixed. Note GCC 10.1.0 and GCC 10.2.0 warn for me as well, so something must have regressed this between 10.2.0 and g:eddcb627ccfbd97e025cf366 I'm inclined to mark as INVALID.