call.c (256281) | call.c (260074) |
---|---|
1/* Functions related to invoking methods and overloaded functions. 2 Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 4 Contributed by Michael Tiemann (tiemann@cygnus.com) and 5 modified by Brendan Kehoe (brendan@cygnus.com). 6 7This file is part of GCC. 8 --- 824 unchanged lines hidden (view full) --- 833 conv = build_conv (ck_std, to, conv); 834 835 /* Give this a better rank if it's a promotion. */ 836 if (same_type_p (to, type_promotes_to (from)) 837 && conv->u.next->rank <= cr_promotion) 838 conv->rank = cr_promotion; 839 } 840 else if (fcode == VECTOR_TYPE && tcode == VECTOR_TYPE | 1/* Functions related to invoking methods and overloaded functions. 2 Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 4 Contributed by Michael Tiemann (tiemann@cygnus.com) and 5 modified by Brendan Kehoe (brendan@cygnus.com). 6 7This file is part of GCC. 8 --- 824 unchanged lines hidden (view full) --- 833 conv = build_conv (ck_std, to, conv); 834 835 /* Give this a better rank if it's a promotion. */ 836 if (same_type_p (to, type_promotes_to (from)) 837 && conv->u.next->rank <= cr_promotion) 838 conv->rank = cr_promotion; 839 } 840 else if (fcode == VECTOR_TYPE && tcode == VECTOR_TYPE |
841 && vector_types_convertible_p (from, to)) | 841 && vector_types_convertible_p (from, to, false)) |
842 return build_conv (ck_std, to, conv); 843 else if (!(flags & LOOKUP_CONSTRUCTOR_CALLABLE) 844 && IS_AGGR_TYPE (to) && IS_AGGR_TYPE (from) 845 && is_properly_derived_from (from, to)) 846 { 847 if (conv->kind == ck_rvalue) 848 conv = conv->u.next; 849 conv = build_conv (ck_base, to, conv); --- 5919 unchanged lines hidden --- | 842 return build_conv (ck_std, to, conv); 843 else if (!(flags & LOOKUP_CONSTRUCTOR_CALLABLE) 844 && IS_AGGR_TYPE (to) && IS_AGGR_TYPE (from) 845 && is_properly_derived_from (from, to)) 846 { 847 if (conv->kind == ck_rvalue) 848 conv = conv->u.next; 849 conv = build_conv (ck_base, to, conv); --- 5919 unchanged lines hidden --- |