From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11613 invoked by alias); 25 Jan 2010 17:54:15 -0000 Received: (qmail 11540 invoked by uid 48); 25 Jan 2010 17:54:15 -0000 Date: Mon, 25 Jan 2010 17:54:00 -0000 Message-ID: <20100125175415.11539.qmail@sourceware.org> From: "tromey at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20090629102443.10343.andre.poenitz@nokia.com> References: <20090629102443.10343.andre.poenitz@nokia.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/10343] gdb selects wrong function overload X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00124.txt.bz2 ------- 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.