re PR fortran/85896 (ICE in gfc_convert_constant(): Unexpected type)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 30 Oct 2018 23:04:10 +0000 (23:04 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 30 Oct 2018 23:04:10 +0000 (23:04 +0000)
commit0a8949a3f248a7b77e7c952bdfeff5649d25f8fd
treeb3309ac16e809dde960b1cece3e41fa4d435c7cd
parent91e3ec29af2b20d26a97b4b80c88eac9ad95e011
re PR fortran/85896 (ICE in gfc_convert_constant(): Unexpected type)

2018-10-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85896
* simplify.c (simplify_min_max): Do not convert the type of the
return expression.

2018-10-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85896
* gfortran.dg/min_max_type.f90: New test.

From-SVN: r265649
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/min_max_type.f90 [new file with mode: 0644]