https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117077
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:062dcf033eaac7385feb1b2daafb8c22628f9e8f commit r16-8773-g062dcf033eaac7385feb1b2daafb8c22628f9e8f Author: Paul Thomas <[email protected]> Date: Tue Apr 21 15:00:14 2026 +0100 Fortran: ICE due to allocatable component in hidden type [PR117077] 2026-03-19 Paul Thomas <[email protected]> gcc/fortran PR fortran/117077 * trans-expr.cc (gfc_trans_scalar_assign): If the lhs and rhs TYPE_MAIN_VARIANTs are not the same, convert the rhs to the lhs type via a VIEW_CONVERT_EXPR. gcc/testsuite/ PR fortran/117077 * gfortran.dg/pr117077.f90: New test.
