This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: CVS: Cannot overload resolve std::string.size() in valops.c(fwd)
- To: Chan Shih-Ping Richard <cshihpin at dso dot org dot sg>
- Subject: Re: CVS: Cannot overload resolve std::string.size() in valops.c(fwd)
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Tue, 29 Feb 2000 22:12:13 -0800 (PST)
- cc: gdb at sourceware dot cygnus dot com
On Wed, 1 Mar 2000, Chan Shih-Ping Richard wrote:
> Hi all,
>
> There seems to be an off-by-one error in valops.c that prevents
> overload resolution of
> string s.size();
> string s.length();
>
> Didn't Dan Berlin point this out sometime ago (?)- wonder have
> I missed a fix in the CVS. When comparing "goodness-of-fit"
> nparms = 0 and nargs = 1. In function find_overload_match
> either
> nargs should be 0
> or
> rank_function should use nargs-1.
>
> Comments?
I fixed this way back when.
As soon as the paperwork goes through (It's been about 2 weeks since they
received it), the patch should go in.
I also have many others patches to C++ support i've been working on in the
meanwhile.
--Dan