home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:13539 comp.std.c++:1157
- Path: sparky!uunet!news.centerline.com!matt
- From: matt@centerline.com (Matt Landau)
- Newsgroups: comp.lang.c++,comp.std.c++
- Subject: operator delete[] and NULL
- Date: 11 Sep 1992 18:30:55 GMT
- Organization: CenterLine Software, Inc.
- Lines: 12
- Message-ID: <18qokvINNvb@armory.centerline.com>
- NNTP-Posting-Host: 140.239.1.32
- Summary: Is delete[] NULL well-defined?
-
- Speaking of operator delete[], is the effect of calling delete[] on NULL
- well-defined? The ARM says plainly that "delete NULL" is legal, and a
- no-op, but I couldn't find anything explicit about "delete[] NULL", nor
- could I find any implication that operator delete and operator delete[]
- must behave the same way.
-
- The reason I ask is that, with USL cfront 2.1.12, I have found code that
- crashes intermittantly when asked to delete[] NULL. I'm wondering if the
- code is correct and cfront is buggy, or vice versa.
- --
- Matt Landau Waiting for a flash of enlightenment
- matt@centerline.com in all this blood and thunder
-