[patch] fix for c++/2416
Aleksandar Ristovski
aristovski@qnx.com
Wed Feb 27 18:43:00 GMT 2008
Hello,
As described in the bug report 2416, the problem is with casting to a reference.
The attached patch should fix this.
Testing on head, no change in pass rate encountered (probably suggesting there
is no test case for this - sample code in the bug report should be a good
starting point).
Thanks,
Aleksandar Ristovski
QNX Software Systems
2008-02-27 Aleksandar Ristovski <aristovski@qnx.com>
* eval.c (evaluate_subexp_standard): UNOP_CAST use
value_cast_pointers when casting reference to reference. Print
error when reference/non-reference mix.
* value.c (value_as_address): Call coerce_array only on arrays.
(unpack_long): Cover C++ cases TYPE_CODE_STRUCT and UNION.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: casting.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080227/a6dd5d7a/attachment.ksh>
More information about the Gdb-patches
mailing list