https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101123
--- Comment #8 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:e5220a731229eaa7be42232c6e9a9dd881fed2b9 commit r11-8624-ge5220a731229eaa7be42232c6e9a9dd881fed2b9 Author: Harald Anlauf <anl...@gmx.de> Date: Fri Jun 18 19:34:15 2021 +0200 Fortran - fix conversion to result type for the min/max intrinsic gcc/fortran/ChangeLog: PR fortran/100283 PR fortran/101123 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Unconditionally convert result of min/max to result type. gcc/testsuite/ChangeLog: PR fortran/100283 PR fortran/101123 * gfortran.dg/min0_max0_1.f90: New test. * gfortran.dg/min0_max0_2.f90: New test. (cherry picked from commit 6fc543396345900f460c9fa7121239cb1ebbc3a3)