This is the mail archive of the gcc-bugs@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]

[Bug c++/29164] Overloaded operator delete[] doesn't get called



------- Comment #10 from Andreas dot Kowarz at tu-dresden dot de  2007-03-12 09:30 -------
THS (The Holy Standard :-) ) 3.7.4.2/3 reads to me that for standard library
implementations the delete operators must be called in any case but return
immediately if the first argument is NULL => NULL-check inside the operator.

Taking the context into account, it reads to me as if standard library delete
calls can be treated as special cases. In the more general case, i.e., the user
supplied delete operators, no special assumptions can be done. Again, the
operators must be called in any case but it is up to the user to handle special
cases correctly. Whatever the latter may look like.

Andreas


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29164


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