diff options
author | Tom Tromey <tromey@adacore.com> | 2022-02-18 14:03:03 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-02-23 13:18:04 -0700 |
commit | ac03c8d8fd6cf7f9080068589683cb06531879c2 (patch) | |
tree | da33dc0c2f1158f9d28dacf2ffb8c6ba47624747 /libctf/ctf-open-bfd.c | |
parent | 29ef4c0699e1b46d41ade00ae07a54f979ea21cc (diff) | |
download | gdb-ac03c8d8fd6cf7f9080068589683cb06531879c2.zip gdb-ac03c8d8fd6cf7f9080068589683cb06531879c2.tar.gz gdb-ac03c8d8fd6cf7f9080068589683cb06531879c2.tar.bz2 |
Fix bug in C++ overload resolution
PR c++/28901 points out a bug in C++ overload resolution. When
comparing two overloads, one might be better than the other for
certain parameters -- but, if that one also has some invalid
conversion, then it should never be considered the better choice.
Instead, a valid-but-not-apparently-quite-as-good overload should be
preferred.
This patch fixes this problem by changing how overload comparisons are
done. I don't believe it should affect any currently valid overload
resolution; nor should it affect resolutions where all the choices are
equally invalid.
Diffstat (limited to 'libctf/ctf-open-bfd.c')
0 files changed, 0 insertions, 0 deletions