Hello world, the attached patch fixes the PR, a regression introduced by r265649, by special-casing those intrinsics of the min/max family which need to be special-cased. This is actually something that had been fixed before (PR 14377), but at the time, no test case had been committed. Regression-tested. OK for trunk? Regards Thomas 2019-01-02 Thomas Koenig 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-02 Thomas Koenig PR fortran/88658 * gfortran.dg/min_max_type_2.f90: New test.