re PR c++/60253 (ICE passing class object through ellipsis (...))

/cp
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60253
	* call.c (convert_arg_to_ellipsis): Return error_mark_node after
	error_at.

/testsuite
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60253
	* g++.dg/overload/ellipsis2.C: New.

From-SVN: r208208
This commit is contained in:
Paolo Carlini 2014-02-27 23:15:20 +00:00 committed by Paolo Carlini
parent c4f6267be5
commit ae9b3eb926
4 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2014-02-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60253
* call.c (convert_arg_to_ellipsis): Return error_mark_node after
error_at.
2014-02-27 Jason Merrill <jason@redhat.com>
PR c++/60353

View File

@ -6411,8 +6411,7 @@ convert_arg_to_ellipsis (tree arg, tsubst_flags_t complain)
if (complain & tf_error)
error_at (loc, "cannot pass objects of non-trivially-copyable "
"type %q#T through %<...%>", arg_type);
else
return error_mark_node;
return error_mark_node;
}
}

View File

@ -1,3 +1,8 @@
2014-02-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60253
* g++.dg/overload/ellipsis2.C: New.
2014-02-27 Jeff Law <law@redhat.com>
PR rtl-optimization/52714

View File

@ -0,0 +1,13 @@
// PR c++/60253
struct A
{
~A();
};
struct B
{
B(...);
};
B b(0, A()); // { dg-error "cannot pass" }