https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50549
--- Comment #5 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:0712f356374c2cf26015cccfa3141537e42cbb12 commit r12-7900-g0712f356374c2cf26015cccfa3141537e42cbb12 Author: Harald Anlauf <anl...@gmx.de> Date: Sun Mar 27 21:35:15 2022 +0200 Fortran: character length of pointer assignments in structure constructors gcc/fortran/ChangeLog: PR fortran/50549 * resolve.cc (resolve_structure_cons): Reject pointer assignments of character with different lengths in structure constructor. gcc/testsuite/ChangeLog: PR fortran/50549 * gfortran.dg/char_pointer_assign_7.f90: New test.