]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/decl.c
re PR fortran/45786 (Relational operators .eq. and == are not recognized as equivalent)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 29 May 2011 18:41:00 +0000 (18:41 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 29 May 2011 18:41:00 +0000 (18:41 +0000)
commitfb03a37e57f31ad176cd901fcc39243d524d4cd4
tree5226f832c787830f57624fc0a90fe130920aef55
parent427180d243e562912cc37f09b140a4d8c042ae4c
re PR fortran/45786 (Relational operators .eq. and == are not recognized as equivalent)

2011-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

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-05-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45786
* gfortran.dg/operator_7.f90:  New test case.

From-SVN: r174412
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/testsuite/gfortran.dg/operator_7.f90 [new file with mode: 0644]