This is the mail archive of the gdb@sourceware.cygnus.com 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]

Re: CVS: Cannot overload resolve std::string.size() in valops.c(fwd)




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


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