re PR fortran/88658 (Intrinsic MAX1 returns a REAL result, should be INTEGER.)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 6 Jan 2019 12:48:58 +0000 (12:48 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 6 Jan 2019 12:48:58 +0000 (12:48 +0000)
commit13b1afe4defcc3eeaa50fe10eb2f2768e95696ec
tree26134927b3fb6c16bc2861226c82eda9a4723674
parent8f4813c1b7e2e567dbeeb5f46ce3ecd7c702bef7
re PR fortran/88658 (Intrinsic MAX1 returns a REAL result, should be INTEGER.)

2019-01-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88658
* gfortran.h: Add macro gfc_real_4_kind
* simplify.c (simplify_min_max): Special case for the types of
AMAX0, AMIN0, MAX1 and MIN1, which actually change the types of
their arguments.

2019-01-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/88658
* gfortran.dg/min_max_type_2.f90: New test.

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