From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79A8E38438A3; Fri, 8 Jan 2021 18:40:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79A8E38438A3 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/91726] [8/9 Regression] ICE in gfc_conv_array_ref, at fortran/trans-array.c:3612 Date: Fri, 08 Jan 2021 18:40:59 +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: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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: Fri, 08 Jan 2021 18:40:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91726 --- Comment #8 from Paul Thomas --- (In reply to Jos=C3=A9 Rui Faustino de Sousa from comment #7) > Hi all! >=20 > Still ICEs with 9/10/11 using -ftrapv -fcheck=3Dbounds >=20 > Best regards, > Jos=C3=A9 Rui Yes, indeed. This with those compile options module m type s class(*), allocatable :: a[:] ! This ICEd end type end gives ../pr91726/pr91726.f90:5:3: 5 | end | ^ Error: mismatching comparison operand types integer(kind=3D8) unsigned long if (_10 !=3D 1) goto ; else goto ; ../pr91726/pr91726.f90:5:3: internal compiler error: =E2=80=98verify_gimple= =E2=80=99 failed 0xec247d verify_gimple_in_seq(gimple*) ../../gcc/gcc/tree-cfg.c:5119 The problem appears to lie in the bounds checking in trans-expr.c(gfc_copy_class_to_class) at line 1425 in master. It is produce= d by the vtable _copy function. For some reason that I cannot see from the code, 10-branch compiles this snippet just fine, while 9-branch produces a completely different error. It's now in my spreadsheet as an intersting one! Paul=