From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D590A385B189; Sat, 26 Nov 2022 21:05:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D590A385B189 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669496757; bh=slnm94/JN7qh2y6kG/FPT+E1UDlnua9W/ZoYTz6gxsg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I18RT2WbvivVV36al9TqfSBRBXPxt+L+TOf+aL7FCCtHXDBZWgcxyIFgm73H3BJg2 i7DNMdsErLXgygOkMFGGuHNs3jh451DyR/qyV+3uuDfQJtPNmhk6Ppd2CQ83b9rMFr X43WkFJvvt6ONuYbFhFrHdBbYM+Or/3hPlxY/Ix0= From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107819] ICE in gfc_check_argument_var_dependency, at fortran/dependency.cc:978 Date: Sat, 26 Nov 2022 21:05:57 +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: ice-on-invalid-code, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael 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: 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=3D107819 --- Comment #12 from Mikael Morin --- (In reply to anlauf from comment #11) > Update: Steve Lionel thinks that no temporary is necessary, and testcase > z1.f90 > is non-conforming: >=20 > https://community.intel.com/t5/Intel-Fortran-Compiler/ELEMENTAL-subroutin= e- > and-dummy-with-VALUE-attribute/m-p/1432932 >=20 > In this case the patch of comment#2 would be sufficient. I was about to suggest to push the check_variable value change down into gfc_check_fncall_dependency, to be more aggressive wrt temporary eliminatio= n. But if the test is not conforming, let's throw all that away.=