https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104619
--- Comment #3 from CVS 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:bc66b471d16ef2fd8cb66fd1131b41f80ecb9961 commit r12-7351-gbc66b471d16ef2fd8cb66fd1131b41f80ecb9961 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Feb 21 22:49:05 2022 +0100 Fortran: skip compile-time shape check if constructor shape is not known gcc/fortran/ChangeLog: PR fortran/104619 * resolve.cc (resolve_structure_cons): Skip shape check if shape of constructor cannot be determined at compile time. gcc/testsuite/ChangeLog: PR fortran/104619 * gfortran.dg/derived_constructor_comps_7.f90: New test.