From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16099 invoked by alias); 30 Apr 2010 09:36:25 -0000 Received: (qmail 15939 invoked by uid 48); 30 Apr 2010 09:35:55 -0000 Date: Fri, 30 Apr 2010 09:36:00 -0000 Message-ID: <20100430093555.15938.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: "burnus 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-04/txt/msg03323.txt.bz2 ------- Comment #2 from burnus at gcc dot gnu dot org 2010-04-30 09:35 ------- "4.5.7.3 Type-bound procedure overriding" (F2008 FDIS): "If a specific type-bound procedure specified in a type definition has the same binding name as a type-bound procedure from the parent type then the binding specified in the type definition overrides the one from the parent type." "If a generic binding specified in a type definition has the same generic-spec as an inherited binding, it extends the generic interface and shall satisfy the requirements specified in 12.4.3.4.5." "A binding of a type and a binding of an extension of that type correspond if the latter binding is the same binding as the former, overrides a corresponding binding, or is an inherited corresponding binding." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945