OSDN Git Service

PR c++/13592
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 20:33:29 +0000 (20:33 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 20:33:29 +0000 (20:33 +0000)
commit3c33f9f377d7df74bec6375524d0e6c385ce383a
treede54ed902338fbf89d7510d0543652e38f2d398f
parentd67e1866c6f2a8828a6697c36ee129703a13de20
PR c++/13592
* call.c (build_field_call): Remove.
(n_build_method_call): Likewise.
(build_method_call): Likewise.
(build_new_method_call): Do not call build_field_call.
* class.c (n_build_method_call): Remove.
(print_class_statistics): Do not print it.
* cp-tree.h (build_method_call): Remove declaration.
(finish_object_call_expr): Likewise.
(build_new_1): Do not use build_method_call.
* parser.c (cp_parser_postfix_expression): Use finish_call_expr
when the function appearing on the right-hand-side of "." or "->"
is not actually a function.
* pt.c (tsubst_copy_and_build): Likewise.
* semantics.c (finish_object_call_expr): Remove.

PR c++/13592
* g++.dg/template/call2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76173 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/call2.C [new file with mode: 0644]