libgfortran: Fix PR95647 by changing the interfaces of operators .eq. and .ne.
authorSteve Kargl <sgk@troutmask.apl.washington.edu>
Fri, 12 Feb 2021 15:58:16 +0000 (07:58 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 12 Feb 2021 15:58:16 +0000 (07:58 -0800)
commit0631e008adc759cc801d0d034224ee6b4bcf31aa
treec96b1b4067b287dd13c516319c7f38e1b55e5508
parentadfee3c4c03dd70a06f6283178d7943b09652206
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