https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87038
--- Comment #13 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> --- That could be (I disagree, but that's another debate), but the question was whether allowing this case would improve the warning or not. If you change it to allowing such a case, you also make -Wc++-compat less good at its job (unless you add yet another warning of course).