Fortran: ICE in simplification of array expression involving power [PR107680]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 15 Nov 2022 20:20:20 +0000 (21:20 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 16 Nov 2022 20:13:16 +0000 (21:13 +0100)
commit713dcfc85ebbabaf74a1bcbac4ba1143519b31d6
treeb2920853c359e4720fe0b9c3c14f1ef6203c2c99
parentac74b3f82b339569b34dc9d1330c2faf74a1c82a
Fortran: ICE in simplification of array expression involving power [PR107680]

gcc/fortran/ChangeLog:

PR fortran/107680
* arith.cc (arith_power): Check that operands are properly converted
before attempting to simplify.

gcc/testsuite/ChangeLog:

PR fortran/107680
* gfortran.dg/pr107680.f90: New test.
gcc/fortran/arith.cc
gcc/testsuite/gfortran.dg/pr107680.f90 [new file with mode: 0644]