https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84503
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- In 7.x this exact problem doesn't really exist, so the issue must be different there. I'd think it might be something fixable by PR82916 - like patch, but haven't actually tried that yet.