https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118476
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes it is fully fixed on the trunk and not latent due to PR 116412 . A patch like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116412#c4 I think should be enough to fix the issue for older GCC.