From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 46A68385221C; Thu, 17 Nov 2022 21:29:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46A68385221C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668720580; bh=JQeqldzhEx6j+/fnd4wceAklbOVrS6FtoS3pFLzNIIY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uVaq/dV7Yl+ka9IIRaSP+1U/GibQqI2ZXBnrs3oeG7aocaS3jqc5WE5lv519DQ4VF vWZ2QcFtFu4arsBPcl8aZLFF5Qkfok2F9n5EdwUMPaXy/yV4RDBqTGY6YR3Lko06DG 8zeAZgfQM8sLZZFdtfNgcPoOzBXxa3lgNKNwZbWk= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107595] ICE in ix86_push_argument, at config/i386/i386.cc:4335 Date: Thu, 17 Nov 2022 21:29:39 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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=3D107595 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #6 from anlauf at gcc dot gnu.org --- Slight reduction of the testcase: program p type t integer, pointer :: b end type ! type(t) :: x =3D t(null()) ! OK type(t) x /t(null())/ ! ICE if (associated (x%b)) stop end Comparing the -fdump-fortran-original for both variants: @@ -15,7 +15,7 @@ result: associated symtree: 'null' || symbol: 'null'=20=20=20=20=20=20=20=20=20 type spec : (INTEGER 4) - attributes: (PROCEDURE INTRINSIC-PROC FUNCTION IMPLICIT-TYPE ARRAY-OUTER-DEPENDENCY) + attributes: (PROCEDURE FUNCTION IMPLICIT-TYPE ARRAY-OUTER-DEPENDENCY) result: null symtree: 'p' || symbol: 'p'=20=20=20=20=20=20=20=20=20=20=20=20 type spec : (UNKNOWN 0) @@ -27,8 +27,8 @@ result: t symtree: 'x' || symbol: 'x'=20=20=20=20=20=20=20=20=20=20=20=20 type spec : (DERIVED t) - attributes: (VARIABLE IMPLICIT-SAVE) - value: t(NULL()) + attributes: (VARIABLE DATA) + value: t(null[()]) code: IF _gfortran_associated[[((p:x % b) ((arg not-present)))]] Are we just missing the resolution of NULL() in the failing case early enou= gh?=