* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.

From-SVN: r194816
This commit is contained in:
Jason Merrill 2013-01-02 14:58:07 -05:00 committed by Jason Merrill
parent e0c06fdd7f
commit 5f94242299
3 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2013-01-02 Jason Merrill <jason@redhat.com>
* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.
PR c++/55032
PR c++/55245
* tree.c (build_cplus_array_type): Copy layout information

View File

@ -10829,7 +10829,7 @@ check_default_argument (tree decl, tree arg)
parameter type. */
++cp_unevaluated_operand;
perform_implicit_conversion_flags (decl_type, arg, tf_warning_or_error,
LOOKUP_NORMAL);
LOOKUP_IMPLICIT);
--cp_unevaluated_operand;
if (warn_zero_as_null_pointer_constant

View File

@ -0,0 +1,12 @@
struct A
{
A(const char *);
explicit A(const int *);
};
void f (A a = 0);
int main()
{
f();
}