https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114811
--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 58012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58012&action=edit Proposed fix This patch fixes gm2-torture.exp to detect internal compiler error as a negative result and also provides a bug fix to M2GenGCC.mod:FoldBinarySet. FoldBinarySet must only check types if the operands have been resolved. This ICE is seen when a string is attempted to be included into a set. See gcc/testsuite/gm2/iso/fail/badexpression2.mod.