From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 577693857BB2; Mon, 16 Jan 2023 17:48:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 577693857BB2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673891295; bh=sRTlqq8Pvsj7n/rJSSbMRx7MiQcnQo2VwZ2tvWjt+vw=; h=From:To:Subject:Date:From; b=d2IhSY0IfDt4cqfsyfvd2OXopl50j3jsmNeWpkYitlntrust3QBYU01uVOeekHCl1 7kMucYWgyP/DX6ZATRKIcJb79I+prwtJE3+Q10c7Cc21xzyerHiU1A5QEOlj2huv5t 9E7bMVqEMlHhQr2sJThrl+1P7ra36cpGO6nD30Tc= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108421] New: ICE in get_expr_storage_size, at fortran/interface.cc:2862 Date: Mon, 16 Jan 2023 17:48:14 +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=3D108421 Bug ID: 108421 Summary: ICE in get_expr_storage_size, at fortran/interface.cc:2862 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: --- Affects versions down to at least r5 : (follow-up of pr107707) $ cat z1.f90 program p character(real(3)) :: c call s(c) end subroutine s(x) character(*) :: x end $ gfortran-13-20230115 -c z1.f90 z1.f90:2:13: 2 | character(real(3)) :: c | 1 Error: Expression at (1) must be of INTEGER type, found REAL f951: internal compiler error: Segmentation fault 0xf8734f crash_signal ../../gcc/toplev.cc:314 0x848e0d get_expr_storage_size ../../gcc/fortran/interface.cc:2862 0x848e0d gfc_compare_actual_formal(gfc_actual_arglist**, gfc_formal_arglist= *, int, int, bool, locus*) ../../gcc/fortran/interface.cc:3326 0x9b2746 check_externals_procedure ../../gcc/fortran/frontend-passes.cc:5742 0x9b7439 gfc_code_walker(gfc_code**, int (*)(gfc_code**, int*, void*), int (*)(gfc_expr**, int*, void*), void*) ../../gcc/fortran/frontend-passes.cc:5352 0x9b8c9b gfc_check_externals0 ../../gcc/fortran/frontend-passes.cc:5861 0x9b9c24 gfc_check_externals(gfc_namespace*) ../../gcc/fortran/frontend-passes.cc:5883 0x89e900 gfc_parse_file() ../../gcc/fortran/parse.cc:6942 0x8ed3af gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=