https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111854
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
as explained.
GCC correctly rejects:
```
#include <new>
struct T {
void* operator new(std::size_t, std::size_t); // Placement allocation
function
void operator delete(void*, std::size_t); // now considered a usual
deallocation function
};
T* p = new (0) T;
// error: usual deallocation function would be chosen as placement deallocation
function
```