https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103591
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:423e0a98e3d972fb180803665a8c02b017b72d15 commit r11-9366-g423e0a98e3d972fb180803665a8c02b017b72d15 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Dec 6 23:15:11 2021 +0100 Fortran: add check for type of upper bound in case range gcc/fortran/ChangeLog: PR fortran/103591 * match.c (match_case_selector): Check type of upper bound in case range. gcc/testsuite/ChangeLog: PR fortran/103591 * gfortran.dg/select_9.f90: New test. (cherry picked from commit f47662204de27f7685699eeef89aa173ccf32d85)