* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.
From-SVN: r194816
This commit is contained in:
parent
e0c06fdd7f
commit
5f94242299
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
struct A
|
||||
{
|
||||
A(const char *);
|
||||
explicit A(const int *);
|
||||
};
|
||||
|
||||
void f (A a = 0);
|
||||
|
||||
int main()
|
||||
{
|
||||
f();
|
||||
}
|
Loading…
Reference in New Issue