https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77676
--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> --- A sightly modified version of the attached patch has been posted for review: https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01475.html