flang icon indicating copy to clipboard operation
flang copied to clipboard

Fix a min-max bug

Open Liuyunlong0336 opened this issue 1 year ago • 1 comments

This patch solves two problems:

  1. 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.

  2. The final type of argument with MIN/MAX intrinsic is determined by the type of highest precision argument, not the first argument.

Liuyunlong0336 avatar Sep 06 '23 02:09 Liuyunlong0336

Anything happens here?

pawosm-arm avatar Mar 03 '24 08:03 pawosm-arm