This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

[Bug c++/10343] gdb selects wrong function overload


------- 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.


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