It seems that arguments of different types are accepted in the elemental functions Max and Min. If this is intended, I would suggest to give a warning if not all arguments have same type and kind parameter.
Best regards,
Klaus
Winapp
Program Test70
Real :: A_sp
Double Precision :: A_dp
Integer :: A_i4
A_sp = 1.0e+00
A_dp = 5.0d+00
A_i4 = 7
Wert_max = Max ( A_sp, A_dp, A_i4 )
Wert_min = Min ( A_sp, A_dp, A_i4 )
Write (*,*) 'Wert_max = ', Wert_max, ' Wert_min = ', Wert_min
End Program Test70