From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8935C388E812; Thu, 11 Mar 2021 14:43:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8935C388E812 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99545] [11 Regression] ICE in gfc_trans_assignment Date: Thu, 11 Mar 2021 14:43:00 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Thu, 11 Mar 2021 14:43:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99545 --- Comment #6 from J=C3=BCrgen Reuter --- Voila, here is a short reproducer: module commands implicit none private type, abstract :: range_t integer :: step_mode =3D 0 integer :: n_step =3D 0 end type range_t type, extends (range_t) :: range_int_t integer :: i_step =3D 0 end type range_int_t type, extends (range_t) :: range_real_t real :: lr_step =3D 0 end type range_real_t type :: cmd_scan_t private class(range_t), dimension(:), allocatable :: range contains procedure :: compile =3D> cmd_scan_compile end type cmd_scan_t contains subroutine cmd_scan_compile (cmd) class(cmd_scan_t), intent(inout) :: cmd allocate (range_int_t :: cmd%range (3)) allocate (range_real_t :: cmd%range (3)) end subroutine cmd_scan_compile end module commands=