]> git.ipfire.org Git - thirdparty/gcc.git/commit
pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not DECL_TEMPLATE_RESULT.
authorJason Merrill <jason@redhat.com>
Thu, 21 Dec 2000 17:50:10 +0000 (12:50 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 21 Dec 2000 17:50:10 +0000 (12:50 -0500)
commit477f6664a4b1316583e5a71f0edd30faefeeaab5
treee6f13c06ffc9b6aad95c7ae50d1a868b3a9baa9f
parente98df22a4f27fe43b61cbb7b3f29d9e4c9691a2d
pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not DECL_TEMPLATE_RESULT.

        * pt.c (tsubst_decl): A FUNCTION_DECL has DECL_RESULT, not
        DECL_TEMPLATE_RESULT.

        * search.c (lookup_field_r): Call lookup_fnfields_1, not
        lookup_fnfields_here.

        * parse.y (typename_sub2): Return the TYPE_DECL, not the type.

        * call.c (build_object_call): Also allow conversions that return
        reference to pointer to function.
        (add_conv_candidate): Handle totype being ref to ptr to fn.
        (build_field_call): Also allow members of type reference to function.
        Lose support for calling pointer to METHOD_TYPE fields.

        * error.c (dump_expr): Handle *_CAST_EXPR.

        * typeck2.c (build_scoped_ref): Always convert to the naming class.

        * tree.c (break_out_cleanups): Lose.
        * cp-tree.h: Remove prototype.
        * typeck.c (build_component_ref): Don't break_out_cleanups.
        (build_compound_expr): Likewise.
        * semantics.c (finish_expr_stmt): Likewise.

From-SVN: r38417
17 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/parse.y
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/g++.old-deja/g++.benjamin/scope01.C
gcc/testsuite/g++.old-deja/g++.brendan/misc15.C
gcc/testsuite/g++.old-deja/g++.other/call1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/lookup18.C
gcc/testsuite/g++.old-deja/g++.other/lookup20.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/parms3.C [new file with mode: 0644]