From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 124AA385354A; Tue, 6 Sep 2022 17:12:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 124AA385354A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662484330; bh=sBpzz35HsU6mDfq65pT5K3FUvwSBT7bCKFZZLljIWBw=; h=From:To:Subject:Date:From; b=BgR7FXZOQJH07TUhzjtqAzAmKHEBVOjlHtdDiVlCg7RgJgKTAzDtBAgnY+mvK66E1 y/sNtwrdRG7xZMH7koPSiSzQu+fTYVpjUpDgN01nPx+zwzZuWCLX+EvzPmtRkOTtOb eVrSZ3S3yEi7VdpQ161yO+wHSyibBCjU9YZXvf7o= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106856] New: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 Date: Tue, 06 Sep 2022 17:12:09 +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.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106856 Bug ID: 106856 Summary: [12/13 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20211010 and 20211017, with option -fcheck=3Dall : $ cat z1.f90 program p class(*), allocatable :: x, y y =3D 'abc' call s1(x, y) contains subroutine s1(x, y) class(*) :: x, y end subroutine s2(x, y) class(*), allocatable :: x, y optional :: x end end $ gfortran-13-20220904 -c z1.f90 -fcheck=3Dall z1.f90:4:16: 4 | call s1(x, y) | 1 internal compiler error: in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 0x894a80 gfc_conv_expr_present(gfc_symbol*, bool) ../../gcc/fortran/trans-expr.cc:1977 0x8a2b86 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec*) ../../gcc/fortran/trans-expr.cc:7192 0x8e1130 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool) ../../gcc/fortran/trans-stmt.cc:422 0x867f18 trans_code ../../gcc/fortran/trans.cc:2018 0x8910ae gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7654 0x81353e translate_all_program_units ../../gcc/fortran/parse.cc:6670 0x81353e gfc_parse_file() ../../gcc/fortran/parse.cc:6976 0x860b1f gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=