]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgfortran: Fix PR95647 by changing the interfaces of operators .eq. and .ne.
authorSteve Kargl <sgk@troutmask.apl.washington.edu>
Fri, 12 Feb 2021 21:04:14 +0000 (13:04 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 12 Feb 2021 21:04:14 +0000 (13:04 -0800)
commitd5021162cf33081c128cd5c4f96ea0b7ca8739d7
tree24ca29f8b4c08e3247902506e3c0f647d9e05c17
parentf248468b309eba0608608c4d8bd75fd0f4580416
libgfortran: Fix PR95647 by changing the interfaces of operators .eq. and .ne.

The FE converts the old school .eq. to ==,
and then tracks the ==.  The module starts with == and so it does not
properly overload the .eq.  Reversing the interfaces fixes this.

2021-02-12  Steve Kargl <sgk@troutmask.apl.washington.edu>

libgfortran/ChangeLog:

PR libfortran/95647
* ieee/ieee_arithmetic.F90: Flip interfaces of operators .eq. to
== and .ne. to /= .

gcc/testsuite/ChangeLog:

PR libfortran/95647
* gfortran.dg/ieee/ieee_12.f90: New test.
gcc/testsuite/gfortran.dg/ieee/ieee_12.f90 [new file with mode: 0644]
libgfortran/ieee/ieee_arithmetic.F90