From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CD403858D28; Tue, 23 Nov 2021 18:58:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CD403858D28 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103391] New: [9/10/11/12 Regression] ICE: gimplification failed Date: Tue, 23 Nov 2021 18:58:54 +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: gscfq@t-online.de 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: Tue, 23 Nov 2021 18:58:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103391 Bug ID: 103391 Summary: [9/10/11/12 Regression] ICE: gimplification failed Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r7 : $ cat z1.f90 program p type t end type type t2 type(t), pointer :: a(:) end type contains function f(x) class(t), intent(in), target :: x(:) type(t2) :: f f%a =3D x end end $ gfortran-6 -c z1.f90 $ $ gfortran-12-20211121 -c z1.f90 gimplification failed: D.4265 + _15 unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f68226a7f18 pointer_to_this reference_to_this chain > unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f68226a7690> arg:0 unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7f68226ad1f8> used unsigned ignored DI z1.f90:11:13 size unit-size align:64 warn_if_not_align:0 context chain used ignored DI z1.f90:11:13 size unit-size align:64 warn_if_not_align:0 context chain >> arg:1 unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7f68224cc000 precision:64 min max > def_stmt _15 =3D (sizetype) _14; version:15>> z1.f90:11:13: 11 | f%a =3D x | ^ internal compiler error: gimplification failed 0xbdad08 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15679 0xbe91bb gimplify_modify_expr ../../gcc/gimplify.c:5973 0xbd9aa7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:14666 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024 0xbd93db gimplify_statement_list ../../gcc/gimplify.c:2012 0xbd93db gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15111 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024 0xbde713 gimplify_bind_expr ../../gcc/gimplify.c:1426 0xbda08a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:14867 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024 0xbd93db gimplify_statement_list ../../gcc/gimplify.c:2012 0xbd93db gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15111 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024 0xbd974c gimplify_and_add(tree_node*, gimple**) ../../gcc/gimplify.c:494 0xbd974c gimplify_loop_expr ../../gcc/gimplify.c:1986 0xbd974c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:14871 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024 0xbd93db gimplify_statement_list ../../gcc/gimplify.c:2012 0xbd93db gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15111 0xbddd78 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7024=