https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77693
--- Comment #8 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:e49508ac6b36adb8a2056c5a1fb6e0178de2439d commit r12-7305-ge49508ac6b36adb8a2056c5a1fb6e0178de2439d Author: Harald Anlauf <anl...@gmx.de> Date: Wed Feb 9 21:54:29 2022 +0100 Fortran: improve check of pointer initialization in DATA statements gcc/fortran/ChangeLog: PR fortran/77693 * data.cc (gfc_assign_data_value): If a variable in a data statement has the POINTER attribute, check for allowed initial data target that is compatible with pointer assignment. * gfortran.h (IS_POINTER): New macro. gcc/testsuite/ChangeLog: PR fortran/77693 * gfortran.dg/data_pointer_2.f90: New test.