From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E21A538582A1; Tue, 21 Feb 2023 19:45:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E21A538582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677008729; bh=KTVKeOEjzWnQydse90AuLooxALCaLIpFR3Q1LMxDNiI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ED+kMc6snuqkutJhv4ncK3Zdht1yjH5Vc4s2eU9uDCerM1ElM/tR5PPKYhHp28boc IDhpTYNbO05U1DOFv8fNkifEm+1qLsLIPlxoUFCcRLz+z6ZVneM3uB3Q1XD2nbLsub WaYigK572HpDEq9BNEZj5Y6BIPKl5CV0HNZEMPqY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug exp/19312] incorrect evaluation of expression with convenience variable Date: Tue, 21 Feb 2023 19:45:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D19312 --- Comment #2 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3592bebbbf6b= 27732effc49bd6a73b0bd5af4df4 commit 3592bebbbf6b27732effc49bd6a73b0bd5af4df4 Author: Tom Tromey Date: Fri Feb 17 19:55:50 2023 -0500 Issue error on erroneous expression A while back I discovered that this does not issue an error: (gdb) p $x =3D (void * ) 57 $3 =3D (void *) 0x39 (gdb) p $x + 7 =3D 3 $6 =3D (void *) 0x3 This patch fixes the bug. Regression tested on x86-64 Fedora 36. Reviewed-By: Bruno Larsen Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D19312 --=20 You are receiving this mail because: You are on the CC list for the bug.=