On Sat, Sep 08, 2007 at 10:16:41PM +0200, Basile STARYNKEVITCH wrote: > Maybe it could make sense to give the malloc attribute only to > ::operator new but not to other new-s, in particular not to the > placement new?
It would be completely wrong to give the attribute to placement new, as the return value *always* aliases the memory you passed it to supply the place.