https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889
--- Comment #9 from Giuseppe D'Angelo <dangelog at gmail dot com> --- > For comparison, Clang doesn't warn. ... doesn't warn on (2) and (3), that is. (Those are the cases for which I think GCC is wrong at emitting the warning.)