https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65908
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 35533 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35533&action=edit Suggested fix I've been testing following patch for 5.1.0 branch. I'm wondering if comparison of just TYPE_ARG_TYPES is sufficient?