https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58796 --- Comment #21 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think this can be backported safely, maybe to gcc-5-branch too.