From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0ECBB3858D39; Sun, 17 Dec 2023 14:12:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0ECBB3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702822350; bh=68bJ/eSgxdyEf77WNuwZp1W6sdv320uTb9LOwWfuIPc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xfh5ydJpHp1AGQAPYdqVCbFxznmModca3HE2BWvAKwwrBMMYIP8mxuufd4UJ/+P0h mAUtABLafscJk0NzLHpZCye7+rFEeyr4HIpdLyYz4MZnlanIiJn4BW/SSn0cbyf8/N Af6BAlU9udcrwYW6X9/pxfSpt2+kQKKHTb1nlYBE= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug c++/13383] scope for top-level using statements is wrong Date: Sun, 17 Dec 2023 14:12:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 14.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc target_milestone resolution bug_status 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=3D13383 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg Target Milestone|--- |14.1 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #1 from Hannes Domani --- This is working since gdb-14.1, I think it was fixed by this commit: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3D68ce157= 5fc902958a9b1d197e2c79ea842a7776d Now you get: ``` Breakpoint 1, xfun () at gdb-13383.cpp:16 16 return Q::C::x; // Breakpoint xfun ^ (gdb) p x No symbol "x" in current context. (gdb) c Continuing. Breakpoint 2, yfun () at gdb-13383.cpp:22 22 return x; // Breakpoint yfun ^ (gdb) p x $1 =3D 5 ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=