Fortran: fix ICE overloading elemental intrinsics
authorHarald Anlauf <anlauf@gmx.de>
Thu, 13 Jan 2022 20:50:45 +0000 (21:50 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 14 Jan 2022 18:16:04 +0000 (19:16 +0100)
commita4a8ae123cd70188e4b4bf5e288a84e0a76fb0fd
tree46dec75bfe04b8963eacf46225c147cb116bbbc2
parent72332337e3d8acbb21398b8d123f1bfe77a8327e
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.
gcc/fortran/expr.c
gcc/testsuite/gfortran.dg/overload_4.f90 [new file with mode: 0644]