spew.c (yylex): Also return the TYPE_DECL if got_object.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 5 Jun 1998 21:57:05 +0000 (21:57 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 5 Jun 1998 21:57:05 +0000 (17:57 -0400)
commita47855649e55188ed94ed6d3f5c4d884df71fe50
tree0d8b3af3ac0f813a34ca81018ae0dc5d23965642
parente211a323f625b6a8a49d13f644ef21f76d0e2453
spew.c (yylex): Also return the TYPE_DECL if got_object.

* spew.c (yylex): Also return the TYPE_DECL if got_object.
Don't clear got_object after '~'.
* call.c (build_scoped_method_call): Tweak destructor handling.
(build_method_call): Likewise.
* pt.c (tsubst_copy, case METHOD_CALL_EXPR): Don't mess with
TYPE_MAIN_VARIANT for destructors.
* semantics.c (finish_object_call_expr): Complain about calling a
TYPE_DECL.

From-SVN: r20256
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/spew.c