https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82078
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> --- Thanks for a nice small testcase. I have proposed a fix on the mailing list: https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00321.html