https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121616
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:0899b826f7196f609fc8991456eb728802061318 commit r16-3813-g0899b826f7196f609fc8991456eb728802061318 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Sep 11 20:17:31 2025 +0200 Fortran: fix assignment to allocatable scalar polymorphic component [PR121616] PR fortran/121616 gcc/fortran/ChangeLog: * primary.cc (gfc_variable_attr): Properly set dimension attribute from a component ref. gcc/testsuite/ChangeLog: * gfortran.dg/alloc_comp_assign_17.f90: New test.