https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68062
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- The FEs are missing a VIEW_CONVERT_EXPR around one of the operands. But I suppose 4.8 is correct in rejecting this compare with mismatched sign (though the rejection isn't dependent on the sign of char).