public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11547] New: Better c++-0x lambda support
@ 2010-04-27 17:08 fuscated at gmail dot com
  2010-04-27 17:09 ` [Bug c++/11547] " fuscated at gmail dot com
  2010-04-27 19:11 ` tromey at redhat dot com
  0 siblings, 2 replies; 4+ messages in thread
From: fuscated at gmail dot com @ 2010-04-27 17:08 UTC (permalink / raw)
  To: gdb-prs

Getting the value 'sum' inside the lambda function doesn't work.

1. Compile the attached source (g++ -std=c++0x) with gcc 4.5.0+
2. Place a breakpoint on line 18 (first line of the lambda)
3. Run the debuggee
4. When the breakpoint is hit evaluate 'sum' with 'print sum' command:

> print sum
$1 = 32767
> print this->__sum
$2 = (int &) @0x7fffffffddec: 0

-- 
           Summary: Better c++-0x lambda support
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: fuscated at gmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11547

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-11547-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2011-11-04 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 17:08 [Bug c++/11547] New: Better c++-0x lambda support fuscated at gmail dot com
2010-04-27 17:09 ` [Bug c++/11547] " fuscated at gmail dot com
2010-04-27 19:11 ` tromey at redhat dot com
     [not found] <bug-11547-4717@http.sourceware.org/bugzilla/>
2011-11-04 17:14 ` tromey at redhat dot com

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