From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61AE238708A7; Mon, 1 Feb 2021 09:06:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61AE238708A7 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/98904] valgrind error in gfc_trans_assignment_1 during bootstrap Date: Mon, 01 Feb 2021 09:06:02 +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: burnus at gcc dot gnu.org X-Bugzilla-Status: WAITING 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2021 09:06:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98904 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #4 from Tobias Burnus --- The code has: ... lhs_refs_comp =3D false, rhs_refs_comp =3D false ... if (flag_coarray =3D=3D GFC_FCOARRAY_LIB) { lhs_caf_attr =3D gfc_caf_attr (expr1, false, &lhs_refs_comp); rhs_caf_attr =3D gfc_caf_attr (expr2, false, &rhs_refs_comp); } ... And the error "Conditional jump or move depends on uninitialised value(s)" points, as you wrote, to the second line of else if (flag_coarray =3D=3D GFC_FCOARRAY_LIB && lhs_caf_attr.codimension && rhs_caf_attr.codimension && ((lhs_caf_attr.allocatable && lhs_refs_comp) || (rhs_caf_attr.allocatable && rhs_refs_comp))) However, the code looks perfectly fine to me.=