From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17745 invoked by alias); 16 Nov 2014 19:30:18 -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 Received: (qmail 17705 invoked by uid 48); 16 Nov 2014 19:30:13 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63733] [4.8/4.9/5 Regression] [OOP] wrong resolution for OPERATOR generics Date: Sun, 16 Nov 2014 19:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work short_desc everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01438.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63733 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-11-16 Known to work| |4.7.4 Summary|[OOP] wrong resolution for |[4.8/4.9/5 Regression] |OPERATOR generics |[OOP] wrong resolution for | |OPERATOR generics Ever confirmed|0 |1 Known to fail| |4.8.3, 4.9.2, 5.0 --- Comment #1 from Dominique d'Humieres --- Assuming that the gurus' all agree that answer should be sum_parent sum_child sum_child I confirm this PR as a regression. The related history is pretty chaotic: [macbook] f90/bug% /opt/gcc/gcc4.8p-187200/bin/gfortran pr63733.f90 [macbook] f90/bug% a.out sum_parent sum_parent sum_child [macbook] f90/bug% /opt/gcc/gcc4.8p-187291/bin/gfortran pr63733.f90 [macbook] f90/bug% a.out sum_parent sum_child sum_child likely r187226 (pr53255), back ported to 4.7 as r187232. [macbook] f90/bug% /opt/gcc/gcc4.8p-188694/bin/gfortran pr63733.f90 [macbook] f90/bug% a.out sum_parent sum_child sum_child [macbook] f90/bug% /opt/gcc/gcc4.8p-189336/bin/gfortran pr63733.f90 pr63733.f90:7.32: generic :: operator(+) => sum 1 Error: Entity 'sum_parent' at (1) is already present in the interface pr63733.f90:35.6: use overwrite 1 Fatal Error: Can't open module file 'overwrite.mod' for reading at (1): No such file or directory likely r189022 (pr49591). [macbook] f90/bug% /opt/gcc/gcc4.8a-195701/bin/gfortran pr63733.f90 pr63733.f90:7.32: generic :: operator(+) => sum 1 Error: Entity 'sum_parent' at (1) is already present in the interface pr63733.f90:35.6: use overwrite 1 Fatal Error: Can't open module file 'overwrite.mod' for reading at (1): No such file or directory [macbook] f90/bug% /opt/gcc/gcc4.8p-195731/bin/gfortran pr63733.f90 [macbook] f90/bug% a.out sum_parent sum_parent sum_child likely r195729 (pr54195).