flang
flang copied to clipboard
Fix a min-max bug
This patch solves two problems:
-
According to the fortran 2008 standard, add syntax check for MAX/MIN intrinsic, as follows:
The arguments shall all be of the same type which shall be integer, real, or character and they shall all have the same kind type parameter.
-
The final type of argument with MIN/MAX intrinsic is determined by the type of highest precision argument, not the first argument.
Anything happens here?