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

Re: RFC: C++ overloadin fixes and a type "char" tweak


On Wed, Jan 08, 2003 at 11:06:34PM -0600, Michael Elizabeth Chastain wrote:
> Hey, I've read this code recently!
> 
>   http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&database=gdb&pr=872
>   gdb fails overload resolution with TYPE_CODE_INT types
> 
> Proofread but not tested.  The gdb.c++/overload.exp part is approved 
> no matter what.  Those setup_xfail's are a flat lie, GDB has correct
> information and then makes the wrong overload choice on its own.
> The gdb part looks fine to me but I don't have resources to test it
> for a while.

Yep, thanks for pointing out the PR.  You can't actually use
TYPE_UNSIGNED and TYPE_LENGTH; int -> long requires a promotion even if
they're the same size.  Such is life in C++-ville.

I'll give it another couple of days in case anyone has a comment about
the way I special-case "char".

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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