This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13356] Be less strict about C++ overloading when callingfunctions from the inferior


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

Pedro Alves <pedro at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pedro at codesourcery dot
                   |                            |com
         Resolution|                            |DUPLICATE

--- Comment #1 from Pedro Alves <pedro at codesourcery dot com> 2011-10-28 15:33:08 UTC ---
> void foo (int *p) {}
...
> (gdb) call foo(1)
> Cannot resolve function foo to any overloaded instance

You're example passes 1, but I suspect you're not doing that in practice, but
instead, passing `0', like below, correct?

> (gdb) call foo (0)
> Cannot resolve function foo to any overloaded instance

This should work, as it is accepted by C++.  Allowing any other constant is of
quite dubious value.

This is also PR13225, which is already fixed in mainline.

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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]