https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123025
--- Comment #18 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:cf270d06000e34cf493ae6625385080e39677af8 commit r16-5971-gcf270d06000e34cf493ae6625385080e39677af8 Author: Harald Anlauf <[email protected]> Date: Mon Dec 8 11:48:29 2025 -0800 Fortran: [PR123025] Catch Old-style character declarations. Before this patch we missed the two cases here: character*5 string5 ! Gives obsolescent message character*(5) string5const ! Silent with constant character*(2+3) string5expr ! Silent with expression PR fortran/123025 gcc/fortran/ChangeLog: * decl.cc (match_char_length): Add a check for the obsolete '*' style of character declarations in the alternate branch of checking so we dont miss two use cases: gcc/testsuite/ChangeLog: * gfortran.dg/assumed_charlen_dummy.f90: These tests failed with the change because of the default -pedantic option used by the dg.exp mechanisms. Overide this default. * gfortran.dg/automatic_char_len_1.f90: Ditto. * gfortran.dg/entry_23.f: Ditto. * gfortran.dg/finalize_59.f90: Dito. * gfortran.dg/g77/f90-intrinsic-bit.f: Ditto. * gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto. * gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto. * gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto. * gfortran.dg/g77/intrinsic-unix-erf.f: Ditto. * gfortran.dg/initialization_9.f90: Ditto. * gfortran.dg/intrinsic_actual_4.f90: Ditto. * gfortran.dg/namelist_assumed_char.f90: Ditto. * gfortran.dg/pr15140.f90: Ditto. Co-authored-by: Steven G. Kargl <[email protected]>
