re PR fortran/85544 (ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 22 Dec 2018 14:14:44 +0000 (14:14 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 22 Dec 2018 14:14:44 +0000 (14:14 +0000)
commit06b26538521a21477ce4587b98f1adaa3d2ade5b
tree4b6ba2a548b8eba7e69ff750a4a2d1fb4b501dd3
parent91c02f863e86aa81d003c6382ede715cffdfffc8
re PR fortran/85544 (ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385)

2018-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85544
* frontend-passes.c (optimize_power): Remove.
(optimize_op): Remove call to optimize_power.
* trans-expr.c (gfc_conv_power_op): Handle cases of 1**integer,
(2|4|8|16) ** integer and (-1) ** integer.

2018-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85544
* gfortran.dg/power_7.f90: New test.

From-SVN: r267347
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/fortran/trans-expr.c