https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91699
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> --- hmm that seems quite tricky, as if we are missing a more selective infrastructure for deciding whether a warning applies. Or do you expect to make it work for Fortran too?