https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66660
--- Comment #5 from Andrey Belevantsev <abel at gcc dot gnu.org> --- Created attachment 37464 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37464&action=edit patch for gcc trunk (applies to gcc-5 too)