
Сообщение от
faridenco
1. Должна ли возникать ошибка (или падение программы) при применении delete[] к статической памяти?
В стандарте C++ 2003 года сказано:
5.3.5 Delete
...
2. In the second alternative (delete array), the value of the operand of delete shall be
the pointer value which resulted from a previous array new-expression. If not, the
behavior is undefined.
То есть, поведение не определено.