From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB68F3858C83; Mon, 25 Apr 2022 16:15:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB68F3858C83 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105380] New: ICE in gfc_conv_array_initializer, at fortran/trans-array.cc:6317 Date: Mon, 25 Apr 2022 16:15:22 +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, 25 Apr 2022 16:15:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105380 Bug ID: 105380 Summary: ICE in gfc_conv_array_initializer, at fortran/trans-array.cc:6317 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: --- Something has changed between 20220306 and 20220327, relevant especially for release versions : $ cat z1.f90 program p type t(n) integer, len :: n end type type t2(m) integer, len :: m type(t(1)) :: a(m) end type type(t2(3)) :: x end $ gfortran-12-20220306 -c z1.f90 $ $ gfortran-12-20220424 -c z1.f90 z1.f90:10:3: 10 | end | 1 internal compiler error: Segmentation fault 0xccf18f crash_signal ../../gcc/toplev.cc:322 0x7c2197 wi::extended_tree<576>::get_len() const ../../gcc/tree.h:6179 0x7c2197 wi::int_traits > >::decompose(long*, unsigned int, generic_wide_int > const&) ../../gcc/wide-int.h:985 0x7c2197 wide_int_ref_storage::wide_int_ref_storage > >(generic_wide_int > const&, unsigned int) ../../gcc/wide-int.h:1034 0x7c2197 generic_wide_int >::generic_wide_int > >(generic_wide_int > const&, unsigned int) ../../gcc/wide-int.h:790 0x7c2197 bool wi::lts_p >, generic_wide_int > >(generic_wide_int > const&, generic_wide_int > const&) ../../gcc/wide-int.h:1904 0x7c2197 wi::binary_traits >, generic_wide_int >, wi::int_traits > >::precision_type, wi::int_traits > >::precision_type>::signed_predicate_result operator< >, generic_wide_int > >(generic_wide_int > const&, generic_wide_int > const&) ../../gcc/wide-int.h:3250 0x7c2197 tree_int_cst_lt(tree_node const*, tree_node const*) ../../gcc/tree.h:6335 0x7c2197 gfc_conv_array_initializer(tree_node*, gfc_expr*) ../../gcc/fortran/trans-array.cc:6316 0x7efa40 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, b= ool, bool) ../../gcc/fortran/trans-expr.cc:8393 0x7dc1e3 gfc_conv_structure(gfc_se*, gfc_expr*, int) ../../gcc/fortran/trans-expr.cc:9308 0x7efb99 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, b= ool, bool) ../../gcc/fortran/trans-expr.cc:8428 0x7c6ba5 gfc_emit_parameter_debug_info ../../gcc/fortran/trans-decl.cc:5513 0x78f282 do_traverse_symtree ../../gcc/fortran/symbol.cc:4174 0x7d4d18 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7818 0x75700e translate_all_program_units ../../gcc/fortran/parse.cc:6669 0x75700e gfc_parse_file() ../../gcc/fortran/parse.cc:6956 0x7a44af gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:216=