https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:495332f16df1f73c185a02be428e227e20850752 commit r12-9801-g495332f16df1f73c185a02be428e227e20850752 Author: Steve Kargl <ka...@gcc.gnu.org> Date: Sat Dec 17 19:15:43 2022 -0800 Add a check for invalid use of BOZ with a derived type. PR fortran/107397 gcc/fortran/ChangeLog: * decl.cc (add_init_expr_to_sym): Add check with new error message. gcc/testsuite/ChangeLog: * gfortran.dg/pr107397.f90: New test. (cherry picked from commit 09710f9934969dcb07131e1ed78b72e648123a3a)