public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/8553] GDB doesn't understand the global scope operator.
Date: Fri, 22 Jan 2010 21:13:00 -0000	[thread overview]
Message-ID: <20100122211315.32706.qmail@sourceware.org> (raw)
In-Reply-To: <20031112003800.8553.carlton@bactrian.org>


------- 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.


       reply	other threads:[~2010-01-22 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031112003800.8553.carlton@bactrian.org>
2010-01-22 21:13 ` tromey at redhat dot com [this message]
2010-06-26  8:22 ` jan dot kratochvil at redhat dot com
2010-06-26  8:23 ` jan dot kratochvil at redhat dot com
2010-06-26  8:24 ` jan dot kratochvil at redhat dot com
2010-06-28 20:20 ` jan dot kratochvil at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100122211315.32706.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).