From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1FCEF3858414; Fri, 25 Feb 2022 11:08:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FCEF3858414 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104684] New: ICE: 'verify_gimple' failed (Error: non-trivial conversion in 'component_ref') Date: Fri, 25 Feb 2022 11:08:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 25 Feb 2022 11:08:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104684 Bug ID: 104684 Summary: ICE: 'verify_gimple' failed (Error: non-trivial conversion in 'component_ref') Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran-12.0.1 20220220 snapshot (g:e49508ac6b36adb8a2056c5a1fb6e0178de243= 9d) ICEs when compiling the following testcase, reduced from gfortran-bugs/gfortran-20220127.f90 from the Neil Carlson's Fortran Compiler Tests repository[1], w/ -fcoarray=3Dsingle or -fcoarray=3Dnone: program main type :: index_map integer, allocatable :: send_index(:) end type type(index_map) :: imap contains subroutine sub(this) type(index_map), intent(inout), target :: this type :: box integer, pointer :: array(:) end type type(box), allocatable :: buffer[:] allocate(buffer[*]) buffer%array =3D> this%send_index end subroutine end program % gfortran-12.0.1 -fcoarray=3Dsingle -c ft2kqibk.f90 ft2kqibk.f90:7:16: 7 | subroutine sub(this) | ^ Error: non-trivial conversion in 'component_ref' struct array02_integer(kind=3D4) struct array01_integer(kind=3D4) MEM[(struct box *)_5].array =3D this->send_index; ft2kqibk.f90:7:16: internal compiler error: 'verify_gimple' failed 0xf9af9d verify_gimple_in_seq(gimple*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-cfg.cc:5213 0xc8b185 gimplify_body(tree_node*, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/gi= mplify.cc:16313 0xc8b34c gimplify_function_tree(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/gi= mplify.cc:16384 0xfffc18 gimplify_all_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-nested.cc:3703 0xfffc07 gimplify_all_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-nested.cc:3707 0x1005f40 lower_nested_functions(tree_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/tr= ee-nested.cc:3724 0xaa3143 cgraph_node::analyze() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/cg= raphunit.cc:681 0xaa6047 analyze_functions =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/cg= raphunit.cc:1240 0xaa6ced symbol_table::finalize_compilation_unit() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-12.0.1_p20220220/work/gcc-12-20220220/gcc/cg= raphunit.cc:2500 I tent to believe that this issue is distinct from the one reported in PR95= 338. [1] https://github.com/nncarlson/fortran-compiler-tests=