[Bug c++/12096] New: gdb does not support user defined conversions

swagiaal at redhat dot com sourceware-bugzilla@sourceware.org
Tue Oct 5 16:09:00 GMT 2010


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

           Summary: gdb does not support user defined conversions
           Product: gdb
           Version: 7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: swagiaal@redhat.com


class A { public: operator int() {return 0;}}
void foo (int) {return 11;}

A a;

(gdb)p foo(a)
Cannot resolve function foo 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.



More information about the Gdb-prs mailing list