https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88897
--- Comment #1 from Rafael Avila de Espindola <rafael at espindo dot la> --- Created attachment 45453 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45453&action=edit reduced the test a bit more It now compiles with older gcc too. The warning is there in gcc 7, but not gcc 6.