From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14C323858D1E; Fri, 2 Sep 2022 20:17:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14C323858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662149848; bh=2edJA+DfOJMJXNYVoFAotLBlI6NF3TpZNa3t1Tl0yJM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ma2JqwHdOoEZx32S5otmWyljILSjGae5C/06ae/Pj422oRZyotaSxPhbmdaUsAS01 XuHqDdENVZywfWkClhlDDdq0EBvAdDitOX3OaVm4AfxVTgrxGPF+ut0suwrt6xxkU+ +JjEvYHXGnSQjnVS4AiO0SsVoko6O0rZJpOXnq1Y= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106817] clobber ordering problem when an actual intent(in) argument depends on the value of an intent(out) argument Date: Fri, 02 Sep 2022 20:17:27 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org 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: 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=3D106817 --- Comment #5 from anlauf at gcc dot gnu.org --- (In reply to Mikael Morin from comment #4) > With the testcase from comment #3, it becomes: >=20 > a =3D {CLOBBER}; > D.4223 =3D a + 1; > copy (&a, &D.4223); Right. And with -Wall one gets a bogus warning that points to the issue: pr106817.f90:16:20: 16 | call copy (a, a+1) | ^ Warning: 'a' is used uninitialized [-Wuninitialized] pr106817.f90:14:14: 14 | integer :: a | ^ note: 'a' declared here Which makes this a 9/10/11/12/13 regression ... :-(=