https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70035
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > Is there any reason why the compiler couldn't warn in this case at compile > time? I think that would be a useful warning.