https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97612
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:19f2f22d59f4a3a7e246d09be11a727cffb8badc commit r9-9722-g19f2f22d59f4a3a7e246d09be11a727cffb8badc Author: Paul Thomas <pa...@gcc.gnu.org> Date: Tue Dec 29 17:44:48 2020 +0000 Fortran: Correct missing structure constructor comps. [PR97612]. 2020-12-29 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/97612 * primary.c (build_actual_constructor): Missing allocatable components are set unallocated using EXPR_NULL. Then missing components are tested for a default initializer. gcc/testsuite/ PR fortran/97612 * gfortran.dg/structure_constructor_17.f90: New test. (cherry picked from commit eeb145317b42d5203056851435457d9189a7303d)