re PR c++/88969 (ICE in build_op_delete_call, at cp/call.c:6509)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 25 Jan 2019 19:50:55 +0000 (19:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 25 Jan 2019 19:50:55 +0000 (19:50 +0000)
commit6edee4b3d3a2c970eee897443c9b580ed5d8226b
treea6397b40fbfb22f832d4ff59be79e34c8c609098
parentf28c46cdb85172eb0e267b97e7a9d3befac30a2e
re PR c++/88969 (ICE in build_op_delete_call, at cp/call.c:6509)

/cp
2019-01-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/88969
* call.c (build_op_delete_call): Implement 7.6.2.5/(10.1).
* decl2.c (coerce_delete_type): Use build_pointer_type instead
of TYPE_POINTER_TO.

/testsuite
2019-01-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/88969
* g++.dg/cpp2a/destroying-delete2.C: New.
* g++.dg/cpp2a/destroying-delete3.C: Likewise.

From-SVN: r268278
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/destroying-delete2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/destroying-delete3.C [new file with mode: 0644]