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:
parent
c4f6267be5
commit
ae9b3eb926
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
13
gcc/testsuite/g++.dg/overload/ellipsis2.C
Normal file
13
gcc/testsuite/g++.dg/overload/ellipsis2.C
Normal file
@ -0,0 +1,13 @@
|
||||
// PR c++/60253
|
||||
|
||||
struct A
|
||||
{
|
||||
~A();
|
||||
};
|
||||
|
||||
struct B
|
||||
{
|
||||
B(...);
|
||||
};
|
||||
|
||||
B b(0, A()); // { dg-error "cannot pass" }
|
Loading…
Reference in New Issue
Block a user