From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 417BD3858D3C; Mon, 22 Apr 2024 23:35:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 417BD3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713828958; bh=crwU1lTYt55ObYfRDQSVytHXiF0Z6zEqqMEKtav3KJM=; h=From:To:Subject:Date:From; b=V6uw66v509P4f8dnal9PA+29e57bpkfH+u4AJSslkgn+L8kwdVjTPjHzh+quc0Wqp 5vJlnTYaZBLKSGHe4LGA1pjjWttntISV2i7/zWixJ3NVVj0xa+B1fT3eBvPS0Ycyqm rRYEDd2GH9Fa9cHc0v3Bi2R2yYMBQmr5g7S4h7NQ= From: "dencraft29 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114815] New: internal compiler error: Segmentation fault - Segmentation Fault - on creating type with len parameter and dependent on it character array Date: Mon, 22 Apr 2024 23:35:57 +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: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dencraft29 at gmail 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114815 Bug ID: 114815 Summary: internal compiler error: Segmentation fault - Segmentation Fault - on creating type with len parameter and dependent on it character array Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dencraft29 at gmail dot com Target Milestone: --- The following code lets gfortran crash:=20 program lab_1_4 type Student_Group(Size) integer, len :: Size character :: Genders(Size) =3D "" end type Student_Group type(Student_Group(22)) :: Group end program lab_1_4 I have this crash on both my systems: - GNU Fortran 12.2.0 on Debian 12 (bookworm) 6.1.0.-17-amd64 (virtual machi= ne) - GNU Fortran 13.2.0 on MacOS on Apple M1 Sonoma 14.4.1 (Homebrew GCC 13.2.= 0) When I compile file with provided code, it consistently results in a segmentation fault. It doesn=E2=80=99t matter what compilation flags I set,= it reproduced always. Compiler stacktrace: internal compiler error: Segmentation fault 0x1a22ff6 internal_error(char const*, ...) ???:0 0x7ad551 bool wi::lts_p >, generic_wide_int > >(generic_wide_int > const&, generic_wide_int > const&) ???:0 0x7ace97 gfc_conv_array_initializer(tree_node*, gfc_expr*) ???:0 0x7d5cab gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, b= ool, bool) ???:0 0x7d6280 gfc_conv_structure(gfc_se*, gfc_expr*, int) ???:0 0x7d5e47 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, b= ool, bool) ???:0 0x7bfdc8 gfc_generate_function_code(gfc_namespace*) ???:0 0x7388e6 gfc_parse_file() ???:0=