Mark DECL_SET_IS_OPERATOR_DELETE for user-provided delete operators.
authorMartin Liska <mliska@suse.cz>
Fri, 2 Aug 2019 06:07:15 +0000 (08:07 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 2 Aug 2019 06:07:15 +0000 (06:07 +0000)
commit8e8e7af514344588ff3e3da25c0cb74c12dc6a0d
tree718561f6eba3620d15ed6284d1970991666ac69c
parent5bae71d1aaa211493c58d03037634a06064f59fa
Mark DECL_SET_IS_OPERATOR_DELETE for user-provided delete operators.

2019-08-02  Martin Liska  <mliska@suse.cz>

* decl.c (grok_op_properties):
Mark DECL_SET_IS_OPERATOR_DELETE for user-provided delete operators.
2019-08-02  Martin Liska  <mliska@suse.cz>

* g++.dg/cpp1y/new2.C: New test.

From-SVN: r273996
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/new2.C [new file with mode: 0644]