From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BA183858034; Mon, 22 Nov 2021 19:39:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BA183858034 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103367] New: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 Date: Mon, 22 Nov 2021 19:39:38 +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: Mon, 22 Nov 2021 19:39:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103367 Bug ID: 103367 Summary: [11/12 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377 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: --- Changed between 20211003 and 20211010 : (follow-up of pr102817) $ cat z1.f90 program p type t integer :: a(1,2) =3D 3 end type type(t), parameter :: x(1) =3D t(4) integer :: y(1,2) =3D (x(b)%a) print *, y end $ gfortran-12-20211121 -c z1.f90 z1.f90:6:26: 6 | integer :: y(1,2) =3D (x(b)%a) | 1 Warning: Legacy Extension: REAL array index at (1) z1.f90:1:9: 1 | program p | 1 internal compiler error: in gfc_conv_array_initializer, at fortran/trans-array.c:6377 0x865e1a gfc_conv_array_initializer(tree_node*, gfc_expr*) ../../gcc/fortran/trans-array.c:6377 0x893b60 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, b= ool, bool) ../../gcc/fortran/trans-expr.c:8375 0x874f2b gfc_get_symbol_decl(gfc_symbol*) ../../gcc/fortran/trans-decl.c:1941 0x87770f generate_local_decl ../../gcc/fortran/trans-decl.c:5848 0x833a42 do_traverse_symtree ../../gcc/fortran/symbol.c:4174 0x87884c generate_local_vars ../../gcc/fortran/trans-decl.c:6054 0x87884c gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:7579 0x7fbd3e translate_all_program_units ../../gcc/fortran/parse.c:6638 0x7fbd3e gfc_parse_file() ../../gcc/fortran/parse.c:6925 0x848a6f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:216=