From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29886 invoked by alias); 5 Oct 2010 21:24:26 -0000 Received: (qmail 29872 invoked by uid 22791); 5 Oct 2010 21:24:23 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Tue, 05 Oct 2010 21:24:19 +0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45900] [OOP] Static TBP resolved incorrectly X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Keywords Status Last reconfirmed CC Summary Ever Confirmed 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: Tue, 05 Oct 2010 21:24: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: 2010-10/txt/msg00452.txt.bz2 Message-ID: <20101005212400.MoUdYOoqsh3RapaXseYXB--RDzyNOExU-DBsFHQ54M0@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45900 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2010.10.05 21:00:31 CC| |janus at gcc dot gnu.org Summary|[OOP] Polymorphic method |[OOP] Static TBP resolved |not called |incorrectly Ever Confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org 2010-10-05 21:00:31 UTC --- Confirmed. This is basically a duplicate of PR45836. The TBP call here is non-polymorphic, since the type of the passed object is fixed at compile time. The problem is that it is resolved to the wrong procedure (due to the procedures having the same name).