This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13356] Be less strict about C++ overloading when callingfunctions from the inferior
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 28 Oct 2011 15:33:08 +0000
- Subject: [Bug gdb/13356] Be less strict about C++ overloading when callingfunctions from the inferior
- Auto-submitted: auto-generated
- References: <bug-13356-4717@http.sourceware.org/bugzilla/>
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.