From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27427 invoked by alias); 20 Feb 2011 22:02:10 -0000 Received: (qmail 27417 invoked by uid 22791); 20 Feb 2011 22:02:10 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_DP 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; Sun, 20 Feb 2011 22:02:06 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46244] gfc_compare_derived_types is buggy X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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: Sun, 20 Feb 2011 22:20: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: 2011-02/txt/msg02383.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46244 --- Comment #14 from Dominique d'Humieres 2011-02-20 22:01:54 UTC --- > (apparently this new feature is not tested in the test suite) This wrong, there are several tests;-) The one that is missing is of the form: module psb_base_mat_mod type :: psb_base_sparse_mat integer, private :: m, n integer, private :: state, duplicate logical, private :: triangle, unitd, upper, sorted end type psb_base_sparse_mat end module psb_base_mat_mod module psb_d_base_mat_mod use psb_base_mat_mod integer, parameter :: psb_dpk_ = kind(1.d0) type, extends(psb_base_sparse_mat) :: psb_d_base_sparse_mat end type psb_d_base_sparse_mat type, extends(psb_d_base_sparse_mat) :: psb_d_coo_sparse_mat integer :: nnz integer, allocatable :: ia(:), ja(:) real(psb_dpk_), allocatable :: val(:) end type psb_d_coo_sparse_mat end module psb_d_base_mat_mod module psb_d_mat_mod use psb_d_base_mat_mod type :: psb_d_sparse_mat class(psb_d_base_sparse_mat), allocatable :: a contains procedure, pass(a) :: d_csclip generic, public :: csclip => d_csclip end type psb_d_sparse_mat contains subroutine d_csclip(a,b,info) use psb_d_base_mat_mod implicit none class(psb_d_sparse_mat), intent(in) :: a class(psb_d_sparse_mat), intent(out) :: b integer,intent(out) :: info type(psb_d_coo_sparse_mat), allocatable :: acoo info = 0 allocate(acoo,stat=info) if (info == 0) call move_alloc(acoo,b%a) end subroutine d_csclip end module psb_d_mat_mod