* call.c (convert_default_arg): Use LOOKUP_IMPLICIT.
authorJason Merrill <jason@redhat.com>
Wed, 16 Mar 2011 17:00:13 +0000 (13:00 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Mar 2011 17:00:13 +0000 (13:00 -0400)
From-SVN: r171052

gcc/cp/ChangeLog
gcc/cp/call.c

index 58ea1a544a2df89be4835c32743ff1c927ade2b0..2c289779bf7df29b77ec047c7e1da6b5982f582a 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-16  Jason Merrill  <jason@redhat.com>
+
+       * call.c (convert_default_arg): Use LOOKUP_IMPLICIT.
+
 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
 
        * cp-objcp-common.c (cp_function_decl_explicit_p): Don't crash if
index 499ed03f3f9e0ceb711e9a71c5e95608d32c86db..388f46cdf49f68ba99f2d4498708aa45fee8071c 100644 (file)
@@ -5803,7 +5803,7 @@ convert_default_arg (tree type, tree arg, tree fn, int parmnum)
   if (TREE_CODE (arg) == CONSTRUCTOR)
     {
       arg = digest_init (type, arg);
-      arg = convert_for_initialization (0, type, arg, LOOKUP_NORMAL,
+      arg = convert_for_initialization (0, type, arg, LOOKUP_IMPLICIT,
                                        ICR_DEFAULT_ARGUMENT, fn, parmnum,
                                         tf_warning_or_error);
     }
@@ -5817,7 +5817,7 @@ convert_default_arg (tree type, tree arg, tree fn, int parmnum)
         are never modified in place.  */
       if (!CONSTANT_CLASS_P (arg))
        arg = unshare_expr (arg);
-      arg = convert_for_initialization (0, type, arg, LOOKUP_NORMAL,
+      arg = convert_for_initialization (0, type, arg, LOOKUP_IMPLICIT,
                                        ICR_DEFAULT_ARGUMENT, fn, parmnum,
                                         tf_warning_or_error);
       arg = convert_for_arg_passing (type, arg);