From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B29D3858D3C; Fri, 24 Nov 2023 13:59:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B29D3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700834395; bh=0fDgDkx6F5qzyCyhIBPRxBI4tERGtOmVSHB8f291FUo=; h=From:To:Subject:Date:From; b=ZJV0nyPPCG1LoAOKmngMN4O7jDNK2g9VvF0MMZqLMMuwQod4nEm5akwK6sKZ5IBBJ mOT9lSwgVcWnyb5KSC4vpT2w9OOItAadGbXNmp9eMH1b1MmT7XNnDUG49qqO5SmFCu lNBz8u7By7NEhN5mnyAwo/BxWsD5j8QcOJILsw9c= From: "alexandre.poux at coria dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/112700] New: Segmentation fault with list of characters and types Date: Fri, 24 Nov 2023 13:59: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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexandre.poux at coria dot fr 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 attachments.created 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=3D112700 Bug ID: 112700 Summary: Segmentation fault with list of characters and types Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: alexandre.poux at coria dot fr Target Milestone: --- Created attachment 56679 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56679&action=3Dedit a module triggerring a segmentation fault The attached source code for a fortran module triggers a segmentation fault when compiling ``` bug_mod.f90:24:39: 24 | list_char =3D obj%get_char_list() | 1 internal compiler error: Segmentation fault 0xd432a1 internal_error(char const*, ...) ???:0 0xe409f5 fold_convert_loc(unsigned int, tree_node*, tree_node*) ???:0 0x15e8f14 gfc_trans_create_temp_array(stmtblock_t*, stmtblock_t*, gfc_ss*, tree_node*, tree_node*, bool, bool, bool, locus*) ???:0 0x1631d79 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec*) ???:0 0x15f5151 gfc_conv_loop_setup(gfc_loopinfo*, locus*) ???:0 0x161d4f8 gfc_generate_function_code(gfc_namespace*) ???:0 0x15e7f29 gfc_generate_module_code(gfc_namespace*) ???:0 0x157973b gfc_parse_file() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ``` I've been able to reproduce it with - latest version of gfortran from the archlinux repository: core/gcc-fortran 13.2.1-3 - older version from ubuntu 22.04 : Ubuntu 11.4.0-1ubuntu1~22.04=