https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95587
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:c00ca04ba7e46d2d59e5a4f95ee7121cdc4ba224 commit r10-8337-gc00ca04ba7e46d2d59e5a4f95ee7121cdc4ba224 Author: Harald Anlauf <anl...@gmx.de> Date: Sat Jun 20 16:05:13 2020 +0200 PR fortran/95587 - ICE in gfc_target_encode_expr, at fortran/target-memory.c:362 EQUIVALENCE objects are subject to constraints listed in the Fortran 2018 standard, section 8.10.1.1. These constraints are to be checked also for CLASS variables. gcc/fortran/ PR fortran/95587 * match.c (gfc_match_equivalence): Check constraints on EQUIVALENCE objects also for CLASS variables. (cherry picked from commit 5eb947601bdce59f2ff26694327ad173c51c2724)