This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

delete[] works on static arrays



The following compiles cleanly with egcs 1.0.3, while it shouldn't :

int main(void)
{
  char a[120];
  
  delete[] a;
  return 0;
  
}

Replacing 'delete[]' by 'delete' yields an expected error message, though.

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]