https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103782
--- Comment #7 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:eff452df296a6f3d0f94408bb2a4a5c4a3c86eb7 commit r11-9466-geff452df296a6f3d0f94408bb2a4a5c4a3c86eb7 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Jan 13 21:50:45 2022 +0100 Fortran: fix ICE overloading elemental intrinsics gcc/fortran/ChangeLog: PR fortran/103782 * expr.c (gfc_simplify_expr): Adjust logic for when to scalarize a call of an intrinsic which may have been overloaded. gcc/testsuite/ChangeLog: PR fortran/103782 * gfortran.dg/overload_4.f90: New test. (cherry picked from commit a4a8ae123cd70188e4b4bf5e288a84e0a76fb0fd)