From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB50D3858C62; Fri, 2 Dec 2022 19:44:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB50D3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670010298; bh=4zL35fMikNCVmUfauik8yTH0SglfYjXm4wQ/d/QZie8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Pj6ErjHwC+w66LSHMTXrbwoVeALG5g3e/cEdW3EHhpKhVfNwyAzcTtaTC0/Oe9LB+ ZAatP7K8AVVGffxRIfFMVqqDIx6NsnZh1YAG+DbLqma0oP/UqkZzm6FyVybdyT4Pyh E1sF4haX3/o9fnnzEkstF3x8y+DlrNGVfbUwtLGQ= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107874] merge not using all its arguments Date: Fri, 02 Dec 2022 19:44:58 +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: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107874 --- Comment #16 from Jerry DeLisle --- (In reply to anlauf from comment #15) --- snip --- > Can you please verify? Yes, this fixes the test case. However if the orginal test case is valid fortran we probably need to fix something else. Paul Thomas was noticing a similar problem with his Finalization patches. He was doing the finalizati= on inside trans_transfer or similar so it was blocking on a mutex trying to finalize in the middle of an I/O operation. So in this case, my guess is the merge expression needs to be resolved befo= re the translation phase.=