From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7F673858C20; Sat, 1 Oct 2022 18:10:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7F673858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664647832; bh=eoYqFtuugOR2IA9dNn0lKRHtWN1PA+0bDj54cPkRY2Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ek/3ACvb5JoX0lg8U1NEF738hO0ShxrvAtuDnN+L4C01WTluoY9/LDufY5mT6nEmG PZtafY4NJPi4xO5FTL5ZMvuDbCY1B5CpjlK3V0B/hYjWjrS6jM21oDPVEtWrhc7TXZ TafEBBta5XtQAF8MA2+acwFlJFGSICOvIRbYXC1s= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/100029] ICE on subroutine call with allocatable polymorphic assumed-rank argument Date: Sat, 01 Oct 2022 18:10:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jrfsousa at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100029 --- Comment #4 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:5299155bb80e90df822e1eebc9f9a0c8e4505a46 commit r13-3014-g5299155bb80e90df822e1eebc9f9a0c8e4505a46 Author: Jos=C3=A9 Rui Faustino de Sousa Date: Sun Sep 25 22:48:55 2022 +0200 Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029, PR100040] gcc/fortran/ChangeLog: PR fortran/100040 PR fortran/100029 * trans-expr.cc (gfc_conv_class_to_class): Add code to have assumed-rank arrays recognized as full arrays and fix the type of the array assignment. (gfc_conv_procedure_call): Change order of code blocks such that the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs first. gcc/testsuite/ChangeLog: PR fortran/100029 * gfortran.dg/PR100029.f90: New test. PR fortran/100040 * gfortran.dg/PR100040.f90: New test.=