From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24696 invoked by alias); 6 Jun 2010 02:49:30 -0000 Received: (qmail 24651 invoked by uid 48); 6 Jun 2010 02:49:19 -0000 Date: Sun, 06 Jun 2010 02:49:00 -0000 Message-ID: <20100606024919.24650.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/msg00608.txt.bz2 ------- Comment #11 from janus at gcc dot gnu dot org 2010-06-06 02:49 ------- Reduced test case for comment #4: module foo_mod type foo contains procedure, pass(a) :: doit generic :: do => doit end type contains subroutine doit(a) class(foo) :: a end subroutine end module module bar_mod contains subroutine dodo(a) use foo_mod class(foo) :: a call a%do() end subroutine end module program testd15 use foo_mod type(foo) :: af_ab call af_ab%do() end program testd15.f03:10:0: internal compiler error: in gfc_add_component_ref, at fortran/class.c:77 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945