https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415
--- Comment #10 from Peter Bergner <bergner at gcc dot gnu.org> --- Fixed on trunk with a slightly different (but functionally identical) patch than posted above. I'll let it sit there for a few days to ensure we didn't expose any other issues with the patch before backporting it to the release branches.