https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84079
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- Created attachment 47919 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47919&action=edit Tested patch for GCC 11. The attached patch adds the missing warning.