https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117077
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 64237
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64237&action=edit
Regression free patch
This addresses the source of the ICE directly:
in fold-const.cc
default:
if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (orig))
return fold_build1_loc (loc, NOP_EXPR, type, arg);
gcc_unreachable ();
}
Regtests OK as well :-)
Paul