From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32727 invoked by alias); 22 Jan 2010 21:13:15 -0000 Received: (qmail 32707 invoked by uid 48); 22 Jan 2010 21:13:15 -0000 Date: Fri, 22 Jan 2010 21:13:00 -0000 Message-ID: <20100122211315.32706.qmail@sourceware.org> From: "tromey at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20031112003800.8553.carlton@bactrian.org> References: <20031112003800.8553.carlton@bactrian.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/8553] GDB doesn't understand the global scope operator. X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00106.txt.bz2 ------- Additional Comments From tromey at redhat dot com 2010-01-22 21:13 ------- I tried this with a recent (F11 system) gcc and CVS head gdb, and it worked fine. Complete test case: int func () { return 23; } namespace N { int func () { return 2 + ::func(); } }; int main () { return N::func(); } (gdb) start Temporary breakpoint 1 at 0x804845e: file pr.cc, line 14. Starting program: /home/tromey/gnu/PRS/gdb8553/pr Temporary breakpoint 1, main () at pr.cc:14 14 return N::func(); (gdb) s N::func () at pr.cc:8 8 return 2 + ::func(); (gdb) p ::func() $1 = 23 (gdb) p N::func() $2 = 25 -- What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |7.1 http://sourceware.org/bugzilla/show_bug.cgi?id=8553 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.