https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100607
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:fae09dfc0e6bf4cfe35d817558827aea78c6426f commit r14-1505-gfae09dfc0e6bf4cfe35d817558827aea78c6426f Author: Steve Kargl <[email protected]> Date: Fri Jun 2 19:44:11 2023 +0200 Fortran: fix diagnostics for SELECT RANK [PR100607] gcc/fortran/ChangeLog: PR fortran/100607 * resolve.cc (resolve_select_rank): Remove duplicate error. (resolve_fl_var_and_proc): Prevent NULL pointer dereference and suppress error message for temporary. gcc/testsuite/ChangeLog: PR fortran/100607 * gfortran.dg/select_rank_6.f90: New test.
