From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12424 invoked by alias); 23 Jan 2012 17:14:33 -0000 Received: (qmail 12410 invoked by uid 22791); 23 Jan 2012 17:14:32 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_VP 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; Mon, 23 Jan 2012 17:14:19 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51970] New: gimplification failed for an avatar of pr51948 Date: Mon, 23 Jan 2012 17:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-01/txt/msg02675.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51970 Bug #: 51970 Summary: gimplification failed for an avatar of pr51948 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: dominiq@lps.ens.fr CC: burnus@net-b.de Compiling the following (invalid?) avatar of pr51948 type t end type t contains function func(x) class(t), allocatable :: x(:), func2(:) call move_alloc (x, func2) ! FAILS: Error: the 'from' and 'to' arguments of 'move_alloc' intrinsic at (1) must have the same rank 0/1 end function function func2(x) type(t), allocatable :: x class(t), allocatable :: func2 call move_alloc (x, func2) ! FAILS: Error: 'to' argument of 'move_alloc' intrinsic at (1) must be a variable end function end gives the following ICE gimplification failed: &func2._data unit size align 64 symtab 0 alias set -1 canonical type 0x142d2fe70 fields pointer_to_this chain > public unsigned DI size unit size align 64 symtab 0 alias set -1 canonical type 0x142d33348> arg 0 arg 0 addressable used BLK file pr51948_db.f90 line 6 col 0 size unit size align 64 context > arg 1 BLK file pr51948_db.f90 line 6 col 0 size unit size align 64 offset_align 128 offset bit offset context chain > pr51948_db.f90:7:0> pr51948_db.f90:7:0> pr51948_db.f90: In function 'func': pr51948_db.f90:7:0: internal compiler error: gimplification failed This may due to the patch at http://gcc.gnu.org/ml/fortran/2012-01/msg00213.html . The code is accepted by trunk r183357.