It shouldn't.

You are not copying MyString instances, you are assigning pointers. Both pointers point to the same instance which you delete before accessing it through the other pointer.

What...