Some Google(tm)ing does turn up plenty of other people complaining aboutsimilar behaviour. This report seems to have the most enlightening response:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54561
Perhaps Clang has a more useful warning?