https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68833
--- Comment #4 from Franz Sirl <sirl at gcc dot gnu.org> --- The fix in Comment 3 works fine for me. No testsuite regressions and also the application where I spotted this compiles/warns as expected now.