[RFC] Patch to fix Infinite Stack Recursion Regression

Geoffrey Keating geoffk@apple.com
Mon Aug 8 20:50:00 GMT 2005


Hi Fariborz,

> * 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.
> * class.c (resolve_address_of_overloaded_function): Add
> LOOKUP_NORMAL in call to can_convert_arg.
> (resolve_address_of_overloaded_function): Ditto.
> * decl.c (reshape_init, check_default_argument): Ditto.
> * typeck.c (build_ptrmemfunc): Ditto.
> * typeck2.c (digest_init): Ditto.
> (unify): Add LOOKUP_NORMAL to call to type_unification_real.
> * 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.

This looks reasonable, could you make a version of that patch that  
applies to FSF and post that for review?

:REVIEWMAIL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2408 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050808/c2e69d2b/attachment.p7s>


More information about the Gcc-patches mailing list