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

2018-10-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29164 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2007-03-12 Thread Andreas dot Kowarz at tu-dresden dot de
--- 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 =

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

2007-03-10 Thread fang at csl dot cornell dot edu
--- Comment #9 from fang at csl dot cornell dot edu 2007-03-11 03:47 --- In fact, I'm having trouble reproducing the problem when operator delete [] returns anything BUT NULL. It's as if, the actual call to operator delete [] is guarded by a NULL check. Now, if I'm RTHS (reading the

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

2007-03-09 Thread Andreas dot Kowarz at tu-dresden dot de
--- Comment #8 from Andreas dot Kowarz at tu-dresden dot de 2007-03-09 09:37 --- It seems that the bug triggers only when returning NULL in the new operators. Returning something different ( tested with (void *)1 ) is a workaround for the problem. Checking for not returning NULL in the

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

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2007-03-08 21:49 --- Ouch, this one seems particularly nasty to me... seeings as this isn't a regression (at least from 2.95), I don't expect this to be fixed for 4.2. Is there any chance of this getting attention on the (4.3)

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

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-03-08 22:58 --- Subject: Re: Overloaded operator delete[] doesn't get called This following test case is 'interesting': 8 snip 8- #include iostream using std::cout; class one_array_only {

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

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #7 from fang at csl dot cornell dot edu 2007-03-08 23:41 --- Subject: Re: Overloaded operator delete[] doesn't get called Above, in operator new[], If WTF is false, returning NULL, I reproduce the same error (missing call to class operator delete []). If WTF is true

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

2006-10-10 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2006-10-11 03:43 --- Confirmed. 12.5/4 reads to me as if myclass::operator delete[] should be called. Indeed icc doesn't call either user defined operator in the array case. I think that's just a convergence of bugs, though. This appears

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

2006-09-21 Thread Andreas dot Kowarz at tu-dresden dot de
--- Comment #1 from Andreas dot Kowarz at tu-dresden dot de 2006-09-21 10:47 --- *** Bug 29163 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29164

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

2006-09-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-09-21 11:25 --- EDG ends up not even calling the overloaded delete. Looking at the std I can see no reason why your program should not use the overloaded deletes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29164

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

2006-09-21 Thread Andreas dot Kowarz at tu-dresden dot de
--- Comment #3 from Andreas dot Kowarz at tu-dresden dot de 2006-09-21 11:59 --- (In reply to comment #2) EDG ends up not even calling the overloaded delete. Looking at the std I can see no reason why your program should not use the overloaded deletes. For the moment, I can work