From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BBD84386F45F; Sat, 22 Aug 2020 08:10:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBD84386F45F From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug exp/26519] wrong type used when printing value Date: Sat, 22 Aug 2020 08:10:25 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 08:10:25 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26519 --- Comment #2 from Tom de Vries --- (In reply to Tom Tromey from comment #1) > I don't think gdb has any way to know which one to pick. Agreed. > It guesses, but maybe it should error instead. >=20 In case of C++, I think guessing is fine due to ODR. But I think for C, we should indeed error. Or perhaps, prompt to choose which variant (although you mentioned in PR257= 69 that you wanted to get rid of those prompts). > I think there's another bug about making >=20 > print * ('test4.c:struct ab' *) p >=20 > ... work. I see. I found PR22718, perhaps that's the one you meant. --=20 You are receiving this mail because: You are on the CC list for the bug.=