public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/12832] New: string types for operator overloading
@ 2011-06-01 12:58 jan.kratochvil at redhat dot com
  2012-02-06 15:43 ` [Bug c++/12832] " tromey at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-01 12:58 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: string types for operator overloading
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu


#include <unordered_map>
#include <string>
int main(){
std::unordered_map<std::string, std::string> foo;
std::string x = "foo";
foo[x] = "a";
foo["bar"] = "b";
return 0;
}
g++ -std=c++0x -o unordered_map unordered_map.C -Wall -g

GNU gdb (GDB) 7.3.50.20110601-cvs
8       return 0;
(gdb) p foo[x]
$1 = "a"
(gdb) p foo["bar"]
Cannot resolve function operator[] to any overloaded instance

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/12832] string types for operator overloading
  2011-06-01 12:58 [Bug exp/12832] New: string types for operator overloading jan.kratochvil at redhat dot com
@ 2012-02-06 15:43 ` tromey at redhat dot com
  2013-02-11 20:19 ` tromey at redhat dot com
  2013-07-23 22:28 ` kamaraju at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2012-02-06 15:43 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
          Component|exp                         |c++

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/12832] string types for operator overloading
  2011-06-01 12:58 [Bug exp/12832] New: string types for operator overloading jan.kratochvil at redhat dot com
  2012-02-06 15:43 ` [Bug c++/12832] " tromey at redhat dot com
@ 2013-02-11 20:19 ` tromey at redhat dot com
  2013-07-23 22:28 ` kamaraju at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-02-11 20:19 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-02-11 20:19:05 UTC ---
I think this has more to do with conversion operators
than with overloading.
Resolving as dup of the conversion-operator bug.

*** This bug has been marked as a duplicate of bug 12096 ***

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/12832] string types for operator overloading
  2011-06-01 12:58 [Bug exp/12832] New: string types for operator overloading jan.kratochvil at redhat dot com
  2012-02-06 15:43 ` [Bug c++/12832] " tromey at redhat dot com
  2013-02-11 20:19 ` tromey at redhat dot com
@ 2013-07-23 22:28 ` kamaraju at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: kamaraju at gmail dot com @ 2013-07-23 22:28 UTC (permalink / raw)
  To: gdb-prs

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

Kamaraju Kusumanchi <kamaraju at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kamaraju at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-23 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 12:58 [Bug exp/12832] New: string types for operator overloading jan.kratochvil at redhat dot com
2012-02-06 15:43 ` [Bug c++/12832] " tromey at redhat dot com
2013-02-11 20:19 ` tromey at redhat dot com
2013-07-23 22:28 ` kamaraju at gmail 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).