From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8717 invoked by alias); 30 Oct 2010 12:52:05 -0000 Received: (qmail 8708 invoked by uid 22791); 30 Oct 2010 12:52:04 -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; Sat, 30 Oct 2010 12:52:01 +0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46196] [OOP] gfortran compiles invalid generic TBP: dummy arguments are type compatible X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: Sat, 30 Oct 2010 12:52: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/msg02567.txt.bz2 Message-ID: <20101030125200.KXLXRps1t-sxh7qhKSawMw4YUCvLBvLKUE36DMFF9OM@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46196 --- Comment #11 from Mikael Morin 2010-10-30 12:51:54 UTC --- Another bug, we don't check that components are non-null before entering the loop. module type_a type a sequence end type a end module type_a module type_a_bis type a sequence end type a end module type_a_bis use type_a use type_a_bis, only: b => a type(b) :: y call bar(y) contains subroutine bar (x) type(a) :: x end subroutine bar end PS: Dominique, you can start hacking with this testcase. gfc_compare_derived_types is called with it (when comparing type of `y' vs type of `x'). PS2: we will need a new PR in the end.