typeck.c (cp_build_function_call_vec): When mark_used fails unconditionally return...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 11 May 2019 07:50:22 +0000 (07:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 11 May 2019 07:50:22 +0000 (07:50 +0000)
commita46695c1cd0c5ddbb90148538b06005a132b759a
treeaaa218139488d57cd4e59b29b6ed4db5d4a8b143
parentc130ab6aad57e0309ec02f58f383aece584ac8cb
typeck.c (cp_build_function_call_vec): When mark_used fails unconditionally return error_mark_node.

/cp
2019-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck.c (cp_build_function_call_vec): When mark_used fails
unconditionally return error_mark_node.

/testsuite
2019-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp2a/multiple-deleted-destroying-delete-error-1.C: New.
* g++.dg/cpp2a/multiple-deleted-destroying-delete-error-2.C: Likewise.

From-SVN: r271091
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/multiple-deleted-destroying-delete-error-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/multiple-deleted-destroying-delete-error-2.C [new file with mode: 0644]