https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119199
--- Comment #5 from GCC 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:5e9f71254a5276cfca1769a5d490f6416a823b8d commit r15-7966-g5e9f71254a5276cfca1769a5d490f6416a823b8d Author: Harald Anlauf <anl...@gmx.de> Date: Mon Mar 10 22:24:27 2025 +0100 Fortran: reject SAVE of a COMMON in a BLOCK construct [PR119199] PR fortran/119199 gcc/fortran/ChangeLog: * decl.cc (gfc_match_save): Reject SAVE statement of a COMMON block when in a BLOCK construct. * trans-common.cc (translate_common): Avoid NULL pointer dereference. gcc/testsuite/ChangeLog: * gfortran.dg/common_30.f90: New test. * gfortran.dg/common_31.f90: New test.