"Aj" <[EMAIL PROTECTED]> writes: > I took over some old code and found it riddled with errors. "delete" > is used wherever "delete[]" is needed. Some of this code is > definitely hit several times while the code runs. > > My question: are delete and delete[] equivalent under g++ 3.2.2 when -g > is used and no -O?
The language defines them to not be equivalent, so: no. > If not, I will wonder why this code ever worked at all. :-) Bad luck. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus