This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Marking C++ new operator as malloc?


"Richard Guenther" <richard.guenther@gmail.com> writes:

| On 9/8/07, Chris Lattner <clattner@apple.com> wrote:
| > I understand, but allowing users to override new means that the actual
| > implementation may not honor the aliasing guarantees of attribute
| > malloc.
| 
| Well, you can argue that all hell breaks lose if you do so.  A sane ::new
| is required for almost everything :)

I suspect the question is how to you distinguish a sane new from an an
insane one.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]