]> gcc.gnu.org Git - gcc.git/commit
Fix Infinite Stack Recursion Regression.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 15 Aug 2005 20:38:23 +0000 (20:38 +0000)
committerFariborz Jahanian <fjahanian@gcc.gnu.org>
Mon, 15 Aug 2005 20:38:23 +0000 (20:38 +0000)
commit30f86ec3fba12cb0574db51d75d3355f7264aa77
tree9eb1bd6359f4248ee64777e3f0ec9b93df966070
parentbe53afcf39fe960cc00e151afc7776683f0a677d
Fix Infinite Stack Recursion Regression.

        * cp-tree.h (can_convert_arg, fn_type_unification): New argument.
        * call.c (add_template_candidate_real): Pass down 'flags' to
        fn_type_unification.
        (can_convert_arg): New 'flags' argument. Pass it to call to
        implicit_conversion instead of LOOKUP_NORMAL.
        (can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
        * class.c (resolve_address_of_overloaded_function): Ditto.
        (resolve_address_of_overloaded_function): Ditto.
        * decl.c (reshape_init, check_default_argument): Ditto.
        * typeck.c (build_ptrmemfunc): Ditto.
        * pt.c (type_unification_real): Add 'flags' argument.
        (fn_type_unification): Pass 'flags' to type_unification_real.
        (type_unification_real): Pass new 'flags' argument to call to
        can_convert_arg.

Oked by Geoff Keating.

From-SVN: r103120
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/local6.C [new file with mode: 0644]
This page took 0.060205 seconds and 5 git commands to generate.