[PATCH] Allow new/delete operator deletion only for replaceable.

Jonathan Wakely jwakely.gcc@gmail.com
Thu Apr 9 08:13:44 GMT 2020


On Thu, 9 Apr 2020 at 09:05, Marc Glisse wrote:
> Note that the matching is not 1-to-1. Array vs non-array and
> aligned vs non-aligned seem important, but sized and unsized delete can
> both match the same new, IIUC.

Right.

> Not sure about the nothrow versions...

This is valid, and mixes the nothrow new with non-nothrow delete:

delete new (std::nothrow) int;


More information about the Gcc-patches mailing list