This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/10343] gdb selects wrong function overload
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 25 Jan 2010 17:54:15 -0000
- Subject: [Bug c++/10343] gdb selects wrong function overload
- References: <20090629102443.10343.andre.poenitz@nokia.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-01-25 17:54 -------
I looked into this a little.
The bug is that gdb does not properly implement all the overloading rules.
In particular, in this case, rank_one_type recurses for pointer types.
This leads it to believe that char* is convertible to int*, because
there is a char->int conversion.
I think it would be simple to fix this particular failure, but there are others
lurking. For example, baseclass conversions are ordered by distance, but
rank_one_type does not do this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
Last reconfirmed|2010-01-22 21:43:31 |2010-01-25 17:54:14
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10343
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.