From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3EEAC3858CDA; Tue, 8 Nov 2022 17:28:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EEAC3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667928524; bh=6tsWs5wGAkRTUIOUxVne97rLykr2NhCMjBVZtopc1MM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t1PfaQ3PiFPVeHHsfv7eQjSZ46sqI0tR6orSldk6PQK61AzUk8F/YRLKdlWgWNInD 0qPDE0nfVoRufiKV/4u8RJUaCc9cCV5pi80yL5ml5+2oQ37GgIBf11MyLhIyED9H0Q GLHxxFy743EvkprTbBglSA9a7GBGUtDvu+WBYs2Y= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107576] [10/11/12/13 Regression] ICE in gfc_conv_procedure_call, at fortran/trans-expr.cc:6193 Date: Tue, 08 Nov 2022 17:28:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: accepts-invalid, ice-on-invalid-code 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: keywords Message-ID: In-Reply-To: References: 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=3D107576 G. Steinmetz changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid, | |ice-on-invalid-code --- Comment #1 from G. Steinmetz --- Variant z2.f90 with reversed order always compiles, for every tested release, with and without -std=3Dlegacy : (but no explicit interface, so error expected) $ cat z2.f90 program p integer, pointer :: z(:) =3D> null() call s(null(z)) call s(z) end $ gfortran-13-20221106 -c z2.f90 $ gfortran-13-20221106 -c z2.f90 -std=3Dlegacy Test cases with an explicit interface and specified pointer dummy (ok) : $ cat z1c.f90 program p integer, pointer :: z(:) =3D> null() call s(z) call s(null(z)) contains subroutine s(x) integer, pointer :: x(:) end end $ cat z2c.f90 program p integer, pointer :: z(:) =3D> null() call s(null(z)) call s(z) contains subroutine s(x) integer, pointer :: x(:) end end=