https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388
--- Comment #11 from amker at gcc dot gnu.org --- Backport to gcc-7-branch with test cases slightly adjusted.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388
--- Comment #11 from amker at gcc dot gnu.org --- Backport to gcc-7-branch with test cases slightly adjusted.