Commit 5f942422 by Jason Merrill Committed by Jason Merrill

* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.

From-SVN: r194816
parent e0c06fdd
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
......
struct A
{
A(const char *);
explicit A(const int *);
};
void f (A a = 0);
int main()
{
f();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment