This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
CVS: Cannot overload resolve std::string.size() in valops.c (fwd)
- To: gdb at sourceware dot cygnus dot com
- Subject: CVS: Cannot overload resolve std::string.size() in valops.c (fwd)
- From: Chan Shih-Ping Richard <cshihpin at dso dot org dot sg>
- Date: Wed, 1 Mar 2000 14:07:51 +0800 (SGT)
- Reply-To: Chan Shih-Ping <cshihpin at dso dot org dot sg>
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?
--
Chan Shih-Ping (Richard) <cshihpin@dso.org.sg>
DSO National Laboratories
20 Science Park Drive
Singapore 118230