https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78696
--- Comment #13 from Martin Sebor <msebor at gcc dot gnu.org> --- Created attachment 40272 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40272&action=edit Lightly tested patch. (In reply to Martin Sebor from comment #6) After some more testing, although the patch I showed happens to fix the problem in the test case, it's not actually correct. I found a few other subtle issues in the function that need to fixed. I'm testing a more comprehensive patch that should fix it the right way.