https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78221
--- Comment #8 from janus at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #6) > This looks promising: Indeed! I can confirm that this fixes the bogus warning on comment 0 and 4 and also in a larger code base, where I first observed it (four-fold). Thanks for the quick fix! That patch is ok for trunk and gcc-6 from my side. Could you explain how/why it fixes the problem? Or where the problem came from in the first place?