https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70030
--- Comment #6 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- Created attachment 38033 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38033&action=edit A patch Here is the patch which might solve the problem.