re PR tree-optimization/70144 (g++ ICE at -O1 and above on valid code on x86_64-linux...
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Mar 2016 15:58:22 +0000 (16:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Mar 2016 15:58:22 +0000 (16:58 +0100)
commit17366700d4ddcefeb271677029f59646a37a8ed3
tree52d1bd6074582ad1e848033093f2d9815718e554
parenta3aad0e69c4f3f66a51c03c50c48c0d083db96f7
re PR tree-optimization/70144 (g++ ICE at -O1 and above on valid code on x86_64-linux-gnu in "copy_reference_ops_from_ref")

PR c++/70144
* cp-tree.h (magic_varargs_p): Return int instead of bool.
* call.c (magic_varargs_p): Return int instead of bool, return 2 for
Cilk+ reductions, otherwise 1 for magic varargs and 0 for normal
varargs.
(build_over_call): If magic_varargs_p == 2, call reject_gcc_builtin,
if magic_varargs_p == 1, call decay_conversion
instead of mark_type_use.  Don't store error_mark_node arguments to
argarray, instead return error_mark_node.

* c-c++-common/pr70144-1.c: New test.
* c-c++-common/pr70144-2.c: New test.

From-SVN: r234297
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr70144-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr70144-2.c [new file with mode: 0644]