https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94743 --- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> --- clang has implemented a warning for this case: https://reviews.llvm.org/D28820