From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13688 invoked by alias); 2 Jun 2011 09:10:47 -0000 Received: (qmail 13675 invoked by uid 22791); 2 Jun 2011 09:10:45 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Jun 2011 09:10:30 +0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45786] [4.5 Regression] Relational operators .eq. and == are not recognized as equivalent X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.4 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 02 Jun 2011 09:10:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00094.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786 --- Comment #13 from Thomas Koenig 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 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 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