diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-10-14 16:13:43 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-10-14 16:13:43 +0000 |
commit | 7062b0a0dfe70957e9cb04749efb627a3032c3f2 (patch) | |
tree | 304772526bc6562280716509edb63433a0bc3eab /gdb/ChangeLog | |
parent | 5c3da5ea2ef28d1f272e737e5165d671149291a0 (diff) | |
download | gdb-7062b0a0dfe70957e9cb04749efb627a3032c3f2.zip gdb-7062b0a0dfe70957e9cb04749efb627a3032c3f2.tar.gz gdb-7062b0a0dfe70957e9cb04749efb627a3032c3f2.tar.bz2 |
Fixed void* vs int* overload issue (PR C++/10343).
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
* gdbtypes.c (rank_one_type): Move type comparison code out of here
to...
(types_equal): ...here. And changed it as follows:
Outside of typedefs type must be of the same TYPE_CODE.
When compairing two pointers or references they are equal if their
targets are equal.
Correct pointer conversions.
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/converts.cc: New test program.
* gdb.cp/converts.exp: New test.
* gdb.cp/overload.exp: Added test for void* vs int*.
* gdb.cp/overload.exp: Ditto.
* gdb.cp/oranking.exp: Removed related kfail.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d440cb2..f66c343 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> + + * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS. + * gdbtypes.c (rank_one_type): Move type comparison code out of here + to... + (types_equal): ...here. And changed it as follows: + Outside of typedefs type must be of the same TYPE_CODE. + When compairing two pointers or references they are equal if their + targets are equal. + Correct pointer conversions. + 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr> * p-lang.c (is_pascal_string_type): Avoid crashes on structures |