title: Copying a pointer and then calling delete
body: <p>If I copy a pointer and then ask for the pointed to allocation to be deleted is it valid C++, or is it undefined? I am not finding a satisfactory answer from google. Thanks.</p>
  
  <pre><code>char* orig = new char[100];
  char* copy = orig;
  delete[] copy;
  </code></pre>