From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D4C33858D37; Sun, 12 Jul 2020 12:55:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D4C33858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594558540; bh=QEiEhOkL3FuvJNjAM7zczg6sg3ADbvyoiZAg94Pezpg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EOsyX2EibHvmAIJJ0GSZ+dtfFYXQfkmJvw+ikfCMNtnxbgiRoFgkAVL3LpLS9pfH+ Q1J2Lxt9Gg7BPzLAzGt+MHJsa8zNWlcLoahR8BcSRbeM+ta55bvDjPpBZQdkQ2zjFP woYonxxQp8H4287OdAasyBRhvc2BzRUECYatGdT4= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93678] [9/10/11 Regression] ICE in 9.2/9.2.1 not happening in previous gfortran versions Date: Sun, 12 Jul 2020 12:55:40 +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: 9.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 12:55:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93678 --- Comment #5 from Thomas Koenig --- A somewhat smaller test case, which of course does nothing useful, but still reproduces the ICE: module mo_a implicit none type t_b integer :: n =3D 0 integer :: nr =3D 0 character, pointer :: buffer(:) =3D> NULL() contains procedure :: unpackbytes =3D> b_unpackbytes=20=20 end type t_b character :: characterarraymold(1) contains subroutine b_unpackint(me, val) class(t_b), intent(inout) :: me integer, intent(out) :: val val =3D transfer(me%unpackbytes(transfer(val, characterarraymold)), va= l) end subroutine b_unpackint function b_unpackbytes(me, bytearraymold) result(res) class(t_b), intent(inout) :: me character, intent(in) :: bytearraymold(:) character, pointer :: res(:) end function b_unpackbytes end module mo_a=