Support overloading of 'operator->'.
authorSami Wagiaalla <swagiaal@redhat.com>
Tue, 19 Oct 2010 20:53:15 +0000 (20:53 +0000)
committerSami Wagiaalla <swagiaal@redhat.com>
Tue, 19 Oct 2010 20:53:15 +0000 (20:53 +0000)
commit79afc5ef5d41c629c2e26eee37aaceac4320b8d6
treee5f34b6aea162a5e90b100321fa14c9340a9f287
parentcca56ac7aecdfc4ba5db742e6505e80d79e28931
Support overloading of 'operator->'.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

 PR C++/11500:
* valarith.c (value_x_unop): Handle STRUCTOP_PTR.
* eval.c (evaluate_subexp_standard): Check for overload of
'operator->'.
* valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
(value_x_unop): Ditto.
* valops.c: Include "exceptions.h".
(find_overload_match): Throw NOT_FOUND_ERROR.
(value_struct_elt): Ditto.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.
gdb/ChangeLog
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/valarith.c
gdb/valops.c