This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45786] [4.5 Regression] Relational operators .eq. and == are not recognized as equivalent
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 2 Jun 2011 09:10:30 +0000
- Subject: [Bug fortran/45786] [4.5 Regression] Relational operators .eq. and == are not recognized as equivalent
- Auto-submitted: auto-generated
- References: <bug-45786-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786
--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-06-02 09:09:57 UTC ---
Author: tkoenig
Date: Thu Jun 2 09:09:53 2011
New Revision: 174560
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174560
Log:
2011-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45786
* interface.c (gfc_equivalent_op): New function.
(gfc_check_interface): Use gfc_equivalent_op instead
of switch statement.
* decl.c (access_attr_decl): Also set access to an
equivalent operator.
2011-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45786
* gfortran.dg/operator_7.f90: New test case.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/operator_7.f90
Modified:
branches/gcc-4_5-branch/gcc/fortran/ChangeLog
branches/gcc-4_5-branch/gcc/fortran/decl.c
branches/gcc-4_5-branch/gcc/fortran/gfortran.h
branches/gcc-4_5-branch/gcc/fortran/interface.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog