From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4370 invoked by alias); 21 Jun 2010 11:01:44 -0000 Received: (qmail 1918 invoked by uid 48); 21 Jun 2010 11:01:23 -0000 Date: Mon, 21 Jun 2010 11:01:00 -0000 Message-ID: <20100621110123.1914.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus at gcc dot gnu dot org" 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-06/txt/msg02011.txt.bz2 ------- Comment #20 from janus at gcc dot gnu dot org 2010-06-21 11:01 ------- (In reply to comment #14) > The attached variation of generic_23 still does not work. ... and the dump shows why: if (vtab$foo2.get == 0B) { vtab$vtype$foo2$get.getit = getit; vtab$foo2.get = &vtab$vtype$foo2$get; vtab$foo2.getit = (integer(kind=4) (*) (void)) getit2; vtab$foo2.doit = (void (*) (void)) doit2; vtab$vtype$foo2$do.doit = doit; vtab$foo2.do = &vtab$vtype$foo2$do; } The specific PPCs of 'foo2' point to the right procedures, but their generic counterparts don't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945